[jgrapht-users] Can I achieve this via JGrapht?
Brought to you by:
barak_naveh,
perfecthash
From: Vikrama S. <vik...@gm...> - 2006-03-08 12:43:29
|
Hi, I'm wondering if I could achieve the following task via JGrapht or it could help me in task accomplishment? Ok here is the task which is quite new and challenging for me! 1) The user will input a square matrix in a text file. It will be an Adjacency Matrix. 2) Java program will read this text file and will validate whether the inpu= t matrix is square or not? If yes then continue; else error screen. 3) After successfull validation, it will create a graph based on the values of matrix. 4) The created (generated) graph (image) will be displayed as an output to the user on his browser. The business logic here is the method of creating graph based on matrix values. This method I know well on paper-pencil. But implementing the same in Java code and generating the graph is bit new. The later part, i.e. generating the graph is in fact the actual task. I've developed an explained example with matrix (input) and the generated graph (output) here: http://www.uploadfile.info/uploads/457e277a37.jpg In the graph, you will see objects are linked with each other via arrows. This linking is decided on the matrix values. Most probably, I will be having images of objets saved in my harddisk. Only Linking them @ runtime have to be done. Looking forward for the help! Bye, Viki. |