Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TGF Graph creating and viewing

Tags:

java

graph

I have some questions related to creating and displaying a graph created with the TGF extension.

Is it enough to describe my graph in this manner into a blank file with the .TGF extension ?

1 First node
2 Second node
#
1 2 Edge between the two

Is it enough to write it like this from Java into that file ?

Also how am i supposed to view the graph's drawing ? I have no clue.

like image 418
Edeph Avatar asked Feb 02 '26 14:02

Edeph


1 Answers

TGF files require this information only. I have created such graphs with these information alone. Maybe some one else can give a clearer answer. :)
When it comes to view the graph, you can use yEd graph Editor (http://www.yworks.com/en/downloads.html#yEd)
As a start, open the graph with yed. Set Tools -> Fit Nod to Label and then use an appropriate layout from Layout menu. Ex: Layout -> Hierarchical -> Orientation -> Top to Bottoom -> OK
Seems TGF format is not expected to keep information about the formation of the graph unlike other complex formats such as GraphML

like image 96
isuru chathuranga Avatar answered Feb 05 '26 03:02

isuru chathuranga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!