Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I need graph representation API

mansour polaris
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone

I wonder if I there is a strong and easy to use API to represent Graph that is suitable for my own data structure program.

Simply in my program i have built-in linked list of objects
called Transaction class each Transaction represents vertex in a graph. Each vertex has two ArrayLists to keep the precedence and next vertices like following:

Class Transaction
int id;
ArrayList <Transaction> preTransactionList;
ArrayList <Transaction> nxtTransactionList;

I don't know if there is a graph representation API in java
to pass the vertex (Transaction) and their precedence and next vertices as long as the id (to be labeled in the node) to build a graphically depicted graph.
Anyway i may customize my data structure to fit any API.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic