Questions tagged [jung2]

General framework for the modeling, analysis, and visualization of graphs.

JUNG — the Java Universal Network/Graph Framework--is a software library that provides a common and extendible language for the modeling, analysis, and visualization of data that can be represented as a graph or network. It is written in Java, which allows JUNG-based applications to make use of the extensive built-in capabilities of the Java API, as well as those of other existing third-party Java libraries.

http://jung.sourceforge.net/

90 questions
6
votes
1 answer

Java Graph library for Network visualization by Graph

I want to Implement a visualization interface for visualizing nodes and edges as graph and some objects like nodes moving between the nodes as Data packets Like the image below: I have tried using the Jung library but it lacks any kind of feature…
Freelancer
  • 836
  • 1
  • 14
  • 47
4
votes
1 answer

How to move JUNG nodes(vertices) by changing their location in the code and not by mouse?

I am implementing an interface for creating graph nodes and connecting them using JUNG. I want to create some nodes that can move from one existing node to another node using the edge between two nodes as their path (It will be used for showing some…
Freelancer
  • 836
  • 1
  • 14
  • 47
3
votes
3 answers

Missing artifact net.sf.jung:jung2:jar:2.0

jung2 is in maven repository, here and here. But my Eclipse does not finding it out: Code is here:
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
3
votes
1 answer

java.lang.IllegalArgumentException: Tree must not already contain child

I have created the following jung2 visualization. My code visualizes a text into a tree. Basically I am using two inputs, one at a time: /* * INPUT 1 */ String text = "=IF(A2=1;0;IF(D2=D3;IF(C2=1;TRUE;FALSE);4))"; …
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
3
votes
2 answers

Convert String into binary tree

I am facing the problem of visualizing this string: "=IF(A2=1;0;IF(D2=D3;IF(C2=1;TRUE;FALSE);4))"; As you can see the general syntax is similar to an excel formula, so that I have IF(TEST; TRUE; FALSE) My problem is that I want to visulize this…
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
3
votes
1 answer

Mouse events on vertex of JUNG graph

I have constructed graphs with JUNG but I'm not sure how to add mouse action listeners to the vertices of the graph. Below is a sample section of my code that I think is the most relevant for the problem. layout = new FRLayout2
Anand Sainath
  • 1,807
  • 3
  • 22
  • 48
2
votes
1 answer

setToolTip in JUNG for several vertices

I have nearly 36 vertiecs in one graph.I would like to insert tooltip box for each and every vertices. I have to show further information about the vertices with the help of tooltip box. vv.setToolTipText("
Breast Neoplasms

"+ "Gene…

Steffi Ma
  • 70
  • 9
2
votes
1 answer

How to draw Straight line by JUNG2?

After do a test by JUNG2, I found all edge line is bent, but not straight line...How to do a straight line for edge by Jung2? package pkg; import javax.swing.JFrame; import edu.uci.ics.jung.algorithms.layout.CircleLayout; import…
frank
  • 53
  • 1
  • 8
2
votes
0 answers

A glitch with Edge label offset

I have peculiar problem when I tried to offset the edge label in my Jung2 network. As shown in figure below the label causes the self loop difficult to see. So I decided to offset the label: vv.getRenderContext().setLabelOffset(20); And the…
2c00L
  • 495
  • 12
  • 29
1
vote
0 answers

Java JUNG 2 Vertex become detached when graph rotated

I have an application which seems to work fine, so long as I do not try to rotate the graph. If the graph is rotated, the edges rotate but the vertices remain where they were. I have included a before and an after rotation image below. import…
1
vote
3 answers

JUNG: Removing edges results in a NullPointerException thrown from BasicEdgeRenderer.paintEdge()

I am dynamically removing edges from a JUNG graph from a thread, but this results in NullPointerExceptions. The stack trace I am seeing: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at…
1
vote
1 answer

Java JUNG - incompatible types

Hello! I have a problem with my program. I use JUNG libraries in java and when I compile the program I get these two errors: Error:(43, 61) java: incompatible types: org.apache.commons.collections15.Transformer
Cosmin
  • 21
  • 1
  • 5
1
vote
1 answer

Add node name in java jung

I implemented some graph algoritms and I want to show a draw of them. I used Jung 2.0 I want to add a name to a node. I managed how to write around the edges, but I want to show the name of a node also. Here is my code: Graph
Wolf Marian
  • 147
  • 12
1
vote
1 answer

jung2: how to draw a graph as a tree?

I need to draw my graph that has a root node and childs have crossrelations between them as standard graphviz draw algorithm. Root on the top, childs below. Treelayout and RadialTreeLayout do not suit (not strong tree and show buggy view for my…
1
vote
1 answer

K farthest points from vertex in graph edu.uci.ics.jung

I want to find K farthest points from a given vertex in a jung implementation of directed graph. I assume that BFSDistanceLabeler does the job. However, it doesn't provide api for returning K farthest points, so I'll have to do it manually by…
Michal
  • 1,955
  • 5
  • 33
  • 56
1
2 3 4 5 6