Open fuvty opened 2 years ago
I think the first line # t 1
is the beginning line of the graph, which means that this graph ID is 1. You just copy this line and modify 1
to any number.
an example of the following lines:
v 0 "label1" // vertex 0, label1
v 1 "label2" // vertex 1, label2
e 0 1 "edge_label" // edge between vertex 0 and vertex 1, edge_label
ps. I think in .lg there are no concepts for directed graphs or undirected graphs. If you want to represent an undirected edge, you may write
e 0 1 "edge_label" // edge between vertex 0 and vertex 1, edge_label
e 1 0 "edge_label" // edge between vertex 0 and vertex 1, edge_label
Great work! But I wonder how can I run GraMi on my own dataset instead of the ones given in Dataset folder? There're some details that I do not understand:
What is the meaning of the first line, i.e. # t 1 in
mico.lg
Are the edges directed or not? If there is an undirected edge between 0 and 1, and there exists
e 0 1 0
in.lg
file, do I need to adde 1 0 0
as well?Thank you for your prompt rely.