Questions tagged [jung]

JUNG is an open-source Java library for representing, manipulating, analyzing, and visualizing graph and network data.

JUNG — the Java Universal Network/Graph Framework--is a software library that provides a common and extensible 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.

The JUNG architecture is designed to support a variety of representations of entities and their relations, such as directed and undirected graphs, multi-modal graphs, graphs with parallel edges, and hyper-graphs. It provides a mechanism for annotating graphs, entities, and relations with metadata. This facilitates the creation of analytic tools for complex data sets that can examine the relations between entities as well as the metadata attached to each entity and relation

The current distribution of JUNG includes implementations of a number of algorithms from graph theory, data mining, and social network analysis, such as routines for clustering, decomposition, optimization, random graph generation, statistical analysis, and calculation of network distances, flows, and importance measures (centrality, PageRank, HITS, etc.). JUNG also provides a visualization framework that makes it easy to construct tools for the interactive exploration of network data. Users can use one of the layout algorithms provided, or use the framework to create their own custom layouts. In addition, filtering mechanisms are provided which allow users to focus their attention, or their algorithms, on specific portions of the graph.

433 questions
0
votes
2 answers

JUNG2: put vertex at fixed point

I would like to ask if is there any way to put vertex at specific point (x,y) at canvas. I would like to start an app with graph already built, however using g.addVertex(1) adds vertex to graph but it is being put at canvas at random points.
0
votes
1 answer

JUNG: Custom DijkstraShortestPath

I discovered this lib this week, and my first project works, I modelize simple flight booking. As edge I have created an Flight Class As vertex I have created an Airport Class I put duration for each flight and succeed to associate dijsktra…
Zuzu
  • 1
  • 2
0
votes
1 answer

How can I ensure that the contents of a JTabbedPane received a ComponentEvent (componentHidden) when the JTabbedPane is no longer visible

I have an application that uses a JTabbedPane to show several different tabs. One of these tabs has a thread running to display it's contents. I have already implemented a ComponentListener to stop the thread when the tab is not visible. I can see…
Stefan
  • 3
  • 2
0
votes
1 answer

Pick/move/resize/delete annotation in JUNG graph

Does JUNG give the ability to pick, move, resize, or delete Annotation objects from the graph? Edit: After considering the AnnotationDemo (cited by @sdasdadas), the following code of interest was identified (in lines 126-134): // Get the…
rkmylo
  • 29
  • 3
0
votes
1 answer

How to paint edges with different angle?

I'm using a CircleLayout for my graph using Jung2. I overrode the initiate() method so that the vertices are drawn on a certain position in the circle depending on its id. This means that vertices are spread irregular on the circle. Now I have a…
neno
  • 31
  • 2
0
votes
2 answers

Adding a method to a class that is from a referenced library (JUNG)

I want to add a method to the Graph class of the JUNG library using Eclipse. How would I do this? I have the JUNG working correctly as a reference library by following this answer: https://stackoverflow.com/a/5618076/1949665
davidhwang
  • 1,343
  • 1
  • 12
  • 19
0
votes
1 answer

Java Jung Graph Editor

I have adjacency matrices stored in a database and I would like to interactively edit them with the Java Jung graph package. Interactive graph editing can be seen in the sample GraphEditorDemo. I have completed a method that will create graph…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
0
votes
1 answer

Java Jung Object Instantiation

I am trying to construct the following from the Java Jung Graph Package: EdmondsKarp Object EdmondsKarpMaxFlow alg = new EdmondsKarpMaxFlow(g, n2, n5, capTransformer, edgeFlowMap, flowEdgeFactory); I have no idea why…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
0
votes
2 answers

How to assign weight to a node in a directed network graph and calculate the effective node weight

My Problem: I have a set of nodes, with some nodes are connected by directional edges. I want to assign the weights to each node and each edge. Finally I would like to calculate effective node weights based on influence of the connected…
0
votes
1 answer

how to use different shapes for jung shape transform

I'm using jung library to draw my grap, so I was wondering if there is any way to create vertex in a different shape rather than creating an ellipse. For instance, I want octagon. This is how I set the shape: Transformer vertexSize…
Ahmet Tanakol
  • 849
  • 2
  • 20
  • 40
0
votes
1 answer

displaying selected node name in jung

I was trying to display vertex name only when user selects the vertex. I can display all vertex names, but it will be better to display selected vertex name for me. I found some example about selecting vertex etc... but in my code actually I can't…
Ahmet Tanakol
  • 849
  • 2
  • 20
  • 40
0
votes
1 answer

Java Jung Graph constructor that takes a degree sequence

I have been looking at the Jung Graph package documentation for a constructor to create a graph given its degree sequence. Does this functionality exist in Jung? Is there an easy implementation for me to do it myself?
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
0
votes
1 answer

JUNG nodes being clipped in visualization

I'm using JUNG to create and visualize some graphs. It appears that the nodes' centers are given coordinates by the layout algorithms. Thus, when a node is on the edge of the pane, some of that node will be cut off (and perhaps the node label as…
COM
  • 847
  • 9
  • 23
0
votes
1 answer

Java Jung Vertex Cuts in Graphs

I am trying to do vertex cuts on graphs in the JUNG graph package. This is best explained by the following pictures: Now, I am going to cut vertex "c1" out of the graph: As you can see vertex "c1" has been removed from the graph, but so have the…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
0
votes
2 answers

Java Jung subgraph components

I have an unconnected graph with several components. How can I get a Graph instance of each subgraph component? For example consider the following Graph: What I want is to be able to return these subgraph components. An example subgraph component…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216