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

How to set edge's length proportional to edge's value

Using JDK 1.7+Jung2. I have a similarity matrix and want to analyze it graphically using jung2 graphs. My dataset is composed by data like: object1 object2 0.54454 object1 object3 0.45634 object2 object3 0.90023 [..] For each line, the value…
gfernandes
  • 57
  • 8
0
votes
1 answer

OrderedKAryTree rendered incorrectly (JUNG2)

I have been working on a displaying AVL Tree operations graphically using JUNG2 (without any animations) I am using OrderedKAryTree for the same. But there is some problem with the rendering. All the edges appear from root to the upper left corner…
SPatil
  • 1,003
  • 8
  • 13
0
votes
2 answers

Calculating closeness centrality using Jung

I am developing a semantic web application, and using Jung library to apply some graphs calculations, such as closeness, betweenness, etc. I was able to find the betweenness value for each node in my rdf and normalized it too. However, this is not…
Dr.AdeeB
  • 31
  • 1
  • 4
0
votes
1 answer

How to change color and stroke of one type of edges

I have a Graph< Potter, Edge> g where Edges belongs to three different classes that extends the Edge class (I use it to represent different type of interactions, like begin related, ask advices and so on...). I would like to color edges accordingly…
user299791
  • 2,021
  • 3
  • 31
  • 57
0
votes
1 answer

how to implement mouse picker in JUNG

I see there are lots of example in JUNG where a combo box is used to change mouse action, from transforming to picking... however, I do not understand where this behavior is actually coded (unfortunately the code is not commented much and I…
user299791
  • 2,021
  • 3
  • 31
  • 57
0
votes
1 answer

Does PersonalizedPageRank class in JUNG library have bug?

I am using JUNG library for its "PageRankWithPriors class". I used a very small graph (with just 3 nodes) to test this class. when there isn't any node with self-edge the output is OK, but if the graph contains a node with a self-edge the output…
0
votes
1 answer

how to find collections of nodes for each degree found in a graph

I am trying to fill an hash map were keys are nodes degree and values are a Collection of all the nodes with that degree value. Right now I came up with this code: // hashmap to hold the result HashMap> result = new…
user299791
  • 2,021
  • 3
  • 31
  • 57
0
votes
1 answer

Put a String on the edge of JUNG graph

I'm trying to put a String text to an edge of a JUNG tree graph. See bellow example. What I tried is to simply add this line: graph.addEdge("arrow", "Vmain", "Vsecond"); ... but without any results (see bellow screenshot). I need some advices…
0
votes
1 answer

Using jung2 in cytoscape plugins

I've taken up java for about a week and a half now with an eye toward writing cytoscape plugins and using jung2 to analyze and manipulate cytoscape graph objects. Is there any way to extend the cytoscape graph object call it class xyz to include a…
-1
votes
1 answer

Can anyone explain the when to use graph in guava and when to use graph in jung 2.1.1?

I am new to use JUNG and guava. I am trying to use JUNG 2.1.1 graphs but I learned that it uses com.google.common.graph. Please tell me which interface is good, and what are the differences (if any)? import com.google.common.graph.Graph or import…
Syed
  • 9
  • 1
-1
votes
3 answers

Multicolor Edge Draw Paint Transformer

Trying to draw a metro graph using JUNG. Is it possible to draw an edge of straight line that uses 2 or more colors in parallel, using the transformer?
ssit
  • 1
  • 1
-1
votes
1 answer

Jung2: NullPointerException "AWT-EventQueue-0" labelVertex(BasicVertexLabelRenderer.java:84)

When jung2 2.1 renders my graph in rc.getVertexLabelTransformer().apply(v) (BasicRenderer.java, 74) it takes my v object (not null, it has correct not null toString) and returns null that cause the exception in other place. How to fix it ? PS I use…
-1
votes
1 answer

Is there any implementation of degree distribution in JUNG2 API?

I tried to look in the documentation of the verision 2, but I didnt find anything.
d_low
  • 141
  • 1
  • 1
  • 7
-2
votes
1 answer

Find faces in a JUNG graph

How to find faces, or more specifically, sets of edges of the same face, in a JUNG graph? Found functions and it provides something like find incident edges, find neighbors, but it does not help. Is there a proper way to find faces in a network…
ssit
  • 1
  • 1
-2
votes
1 answer

How to start with JUNG programming?

I have to start with programming with Graphs and I looked on to the internet to use JUNG 2. I have been going through the documentation, but can anyone please guide me from the beginning as to implement such programs. I have downloaded the jar…
Sahai
  • 33
  • 1
  • 8
1 2 3 4 5
6