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
2 answers

How to show Tree Layout using JUNG but with tidier spacing and structure

I am trying to lay out some nodes in a Tree Layout using JUNG but would like to lay them out in a tidy spacing, similar to - Tidy tree layout example I have downloaded the JUNG project from https://github.com/jrtom/jung and found examples of…
Matt R
  • 5
  • 2
0
votes
1 answer

Animate Random Movement of vertex on jung

I created graph with static Layout in Jung. I have a method for random movement on 2D which moves the vertex for some number of steps. I appreciate the power of JUNG in most of the operations in my project but I wanted to animate the movement of the…
sirbakura
  • 11
  • 2
0
votes
1 answer

Java Jung Graph clustering returns non-intuitive clusters

I want to perform some graph clustering and since I am pretty much bound to Java, decided to give the java package Jung a try. As a simple graph I create two clusters of each 5vertices which are interconnected. I connect both clusters using one…
helloworld
  • 223
  • 1
  • 7
  • 24
0
votes
1 answer

Using efficiently JUNG with TinkerPop3

I am using TinkerPop3 in Java and I have a weighted multi-graph on which I would like to run Dijkstra algorithm to find Shortest Weighted Path between two vertices. I have found in other questions that the recommended way to do this is by using JUNG…
Zak
  • 85
  • 1
  • 5
0
votes
2 answers

Create bidirectional arrows in JUNG

Is it possible to create bidirectional arrows in JUNG using FRLayout? Ideally, is it possible to have an algorithm that uses these arrows (end-points are arrowheads at both ends) for cases where both a->b and b<-a? I think it might be related to …
anarche
  • 536
  • 4
  • 19
0
votes
1 answer

Jung FRLayout pushes all nodes to the edge of the display area

Using JUNG FRLayout, all the nodes are pushed to the borders of the view, is there a way to avoid this? Attraction and Repulsion are both set to 0.75 and maxIter=100, although this behavior is observed for all values
anarche
  • 536
  • 4
  • 19
0
votes
1 answer

JUNG layout for left-to-right placement of nodes

Is there an optimal layout in JUNG for left-to-right placement of nodes in the graph? I'm looking for something that would model a data lineage and need to represent this somewhat linearly (left to right).
anarche
  • 536
  • 4
  • 19
0
votes
1 answer

weird import issues - Jung2

I've been trying to get Jung 2.1.1 to work successfully but whatever breaking changes were made are just not making sense. After importing the 2.1.1 jars, I get the error: The constructor VisualizationViewer(Network, LayoutAlgorithm, Dimension) is…
anarche
  • 536
  • 4
  • 19
0
votes
1 answer

Unable to call setVertexFillPaintTransformer - method is not applicable for the arguments

I'm unable to run any of the Jung examples that set or change the Vertex (or other Transformers). I receive the following error: The method setVertexFillPaintTransformer(Function) in the type RenderContext is not applicable for the arguments…
anarche
  • 536
  • 4
  • 19
0
votes
1 answer

How to move graph edges when scrolling in JUNG

I'm using JUNG 2.0 to visually render a directed acyclic graph, and have added a custom EdgeRenderer to render edges in a variety of colors. The actual edges are drawn by invoking the drawLine() and drawPolyline() methods on a RenderContext…
player.mdl
  • 113
  • 4
0
votes
1 answer

Jung: prevent user from moving a vertex outside the Visualization size?

When in picking mode, I want to limit the user from dragging a vertex outside of the defined layout bounds. I've set the ISOMLayout, VisualizationModel, and the VisualizationViewer to be the same size. But if I zoom out (I'm using a…
cjnolen
  • 1
  • 2
0
votes
1 answer

JUNG - Edges with icons

I am using JUNG for displaying network devices as graphs. Each edge is a link between two network elements. I want to add a picture exactly in the middle of the link. Currently my link looks like this: enter image description here The code for it…
0
votes
2 answers

Create a tree graph in java using Jung

I implement a graph algorithm and I have to make an interface for it. A frame with every step. I will do it manually. I use the Jung package but I can't figure out how to make that graph to look like a tree. I'm struggling for two days. Here is my…
Wolf Marian
  • 147
  • 12
0
votes
1 answer

Building JUNG library with Maven

I'm new to Java and I want to build the JUNG 2.2 library using Maven, because this seems to be the standard way to build it. I've never used Maven before but it was not difficult to install and running mvn clean install worked without a…
Giorgio
  • 2,137
  • 3
  • 20
  • 40
0
votes
1 answer

How to use DirectedSparseVertex() in the jung library?

I am new to the jung library, and I am trying to create a new vertex and am following the jung tutorial carefully (here: http://jung.sourceforge.net/doc/manual.html#start). But, I my eclipse IDE cannot recognize the DirectedSparseVertex class or the…
Dr.Android
  • 259
  • 1
  • 8
  • 22