• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I need graph representation API

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic