wood burning stoves 2.0*
The moose likes Java in General and the fly likes Graph representation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Graph representation

Oleg Korsakov
Greenhorn

Joined: Jan 14, 2007
Posts: 14
Hello!

I have to represent a graph. It has nodes connected with arrows from the top node towards the lower ones. How can I using java language model this graph. Which class should be used for the node and how reprent the arrows between nodes also.
Thanks,
Oleg.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Please do not post your question in multiple forums; carefully choose one forum.
You already posted it here.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
wood burning stoves
 
subject: Graph representation
 
Similar Threads
Graphs and Dijktra's algorithm..
find path in a graph
Graph representation
override the equals and hashcode
print a HashSet of objects