It's not a secret anymore!
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

Graph representation

Oleg Korsakov

Joined: Jan 14, 2007
Posts: 14

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.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15033

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 8 API documentation
I agree. Here's the link:
subject: Graph representation
It's not a secret anymore!