-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper.py
27 lines (23 loc) · 1.07 KB
/
helper.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
descrepition='''
Plot a directed graph through the edge file and node file,you can set it to be undirected by use "-u" or "--undirected" parameter.
The node file is not necessary while nodes on your graph are simple
See the help information of the corresponding parameter for details.
'''
nodes_help = '''
The file contains all vertices in graph with attributes, and it should be a csv file.
It's not necessary while nodes have simple attributes only (just have node names).
'''
edges_help='''
The file contains all edges in graph without self-loop, it should be a csv file, and default is "./edges.csv".
If there are the same "source" and "target", use --self-loop or -s to deal with self-loop.
'''
output_help='''
The output html file, default is "SimplePlot.html".
'''
undirect_help='''
Global option of edge's direction, the graph is directed in default, use it to set the graph to be undircted.
'''
selfloop_help='''
Global option controls whether self-loop is allowed, false in default.
While it is true, use the node file to plot single node. Otherwise, a single node will be plot.
'''