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
0
votes
1 answer

Displaying popup messgae in Jung

I have created a network which consists of number of vertexes and edges. How do I show a popup message over a vertex when I move the mouse to that vertex?
Steffi Ma
  • 70
  • 9
0
votes
0 answers

How to open a Jung Frame class using JBUtton

I have created a class called "Display"and one JFrame class called"SimpleGraphicView" which uses jung2. I am trying to create a button that opens the JFrame. I have tried the following code JButton btnInteractions = new JButton("DNetwork"); …
Steffi Matchado
  • 134
  • 2
  • 10
0
votes
1 answer

Visualize MySQL Data using JUNG

I have to pull out data from MySQL database and I have to visualize those data in network format using Jung. I have connected my program to MySQL database. But I don't know how to extract vertexes from database to Jung. Can anyone help me with…
Steffi Matchado
  • 134
  • 2
  • 10
0
votes
1 answer

How to change the length of an edge in TreeLayout JUNG?

I know how to change the size of the vertex, but when I do that, the TreeLayout places the nodes such that the edges vanish ie. the nodes overlap and the edges are not visible. If I change the layout (to KKLayout), the edges are automatically made…
noob333
  • 197
  • 4
  • 14
0
votes
3 answers

How to pause a pre-implemented Runnable class in java?

I have got the following animator class that implements Runnable (mentioned in JUNG documentation). How can tell the thread , if some condition was true pause for some time and then start running? switch (args[0]) { case "agent": …
Freelancer
  • 836
  • 1
  • 14
  • 47
0
votes
0 answers

How to manage java threads by sleep function?

I am impelementing an interface by JUNG library for moving agents(that are JUNG nodes) between nodes. When I command the agent to move from node 1 to node 2 , and before the agent's trip to node 2 has finished I command the agent to move to node…
Freelancer
  • 836
  • 1
  • 14
  • 47
0
votes
1 answer

Java automization of Export HQ Images to pdf

I want to get high quality images of my network created in Jung. ExportDialog of the FreeHEP VectorGraphics library gives this option in the form of a dialog box. ExportDialog export = new ExportDialog(); export.showExportDialog(vv, "Export view as…
2c00L
  • 495
  • 12
  • 29
0
votes
1 answer

Java: Place the arrow at the center of the edges in Jung2 Network

I have a network with directed edges. The arrows indicate the direction of the edge in the GUI. But as shown in figure, when the arrows are at the end of the edges it becomes pretty confusing. Is it possible to change the location of the arrow to…
2c00L
  • 495
  • 12
  • 29
0
votes
1 answer

Jung VoltageScorer - Which vertices to use as 'sources' & 'sinks'?

I would like to evaluate the Voltage Scores of a Graphs' Vertices in Jung using VoltageScorer. (http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/algorithms/scoring/VoltageScorer.html) The problem I encounter is that to do so I have to provide…
Xipo
  • 1,765
  • 1
  • 16
  • 23
0
votes
1 answer

How to make Jung2 move the node on top when the user picks one from a pile?

I've built a desktop application based on an example shipped with Jung2 that displays graphs on a frame. The application lets the user move selected nodes around using the EditingModalGraphMouse class. However, when the user clicks and drags a node…
Ricardo
  • 748
  • 12
  • 26
0
votes
1 answer

Layout's location algo apply to filtered set of Vertexes

the job of the layout is to place vertexes at given locations. if the layout is iterative, then the layout's job is to iterate through an algo, moving the vertexes with each step, until the final layout configuration is achieved. I have a…
chris fabri
  • 1
  • 1
  • 1
0
votes
1 answer

How to add some edges with same weight?

Here is my code: g = new SparseMultigraph(); g.addVertex("A"); g.addVertex("B"); g.addVertex("C"); g.addEdge(0.5, "A", "B"); g.addEdge(0.5, "B", "C"); g.addEdge(0.3, "A", "C"); System.out.println("The graph g = " +…
0
votes
1 answer

How to Change Colour of an Edge in JUNG graph Visualization Library?

in reference to this Link : Change Size/Color of Vertex in JUNG I am trying to simulate Dijkstra algorithm visually using JUNG. i can get set of Edges and end points of each Edge using built in Dijkstra algorithm in library. but my question is if…
Duggs
  • 169
  • 1
  • 12
0
votes
0 answers

Null properties on vertices after creating GraphJung from Neo4jGraph graph

I am having a strange problem while trying to visualize a Neo4jGraph in Java. I create a GraphJung graphjung object and try to access Vertex an Edge properties defined previously. Even though Edge labels can be retrieved correctly, Vertices seem to…
0
votes
1 answer

JUNG Graph, Can I use it?

I am trying to use the undirected and weighted RageRank algorithm, and I found the UndirectedSparseGraph.java and and UndirectedSparseMultigraph.java classes at JUNG. They both seem to server the purpose without modifications required, but I do not…
user200340
  • 3,301
  • 13
  • 52
  • 74