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

JUNG Layout's preferred size, based on the size of the graph

I'm using the JUNG framework, with the FRLayout. Like this: layout = new FRLayout(graph); preferredSize = new Dimension(600, 600); final VisualizationModel visualizationModel = new DefaultVisualizationModel
Pieter-Jan
  • 1,675
  • 2
  • 19
  • 25
3
votes
1 answer

How do I find the drawn location of a graph in JUNG2?

I am working with the JUNG libraries to create graphs in Java. I need to fit a graph to its parent frame and set the view so that the graph is shown in the center of the view. I have managed to set the zoom to the correct size using code from…
3
votes
1 answer

getting started with jung library

Recently i have downloaded the jung library and trying to analyse some datasets. First of all, is there another tutorial except this: http://www.grotto-networking.com/JUNG/JUNG2-Tutorial.pdf ? Also, i am working with eclipse and facing difficulties…
salvador
  • 1,079
  • 3
  • 14
  • 28
3
votes
1 answer

Jung, Layout for large vertices overlap and graph appears in strange location

I am trying to use Jung for a project and to get the look/behavior I want I am starting with some test data. The idea is to have very Large Vertices with labels on top of the Verticies shapes. The data for the graph will be generated at runtime so…
Jim
  • 2,034
  • 2
  • 15
  • 29
3
votes
1 answer

JUNG: adding children to DelegateTree after having drawn it

I'm developing a Java application and I'm using the JUNG library. In my application I first create a DelegateTree and draw it to the screen: public static GraphZoomScrollPane generateTree(Tree tree, GraphicalUserInterface gui) { /* Create a…
dylan202
  • 349
  • 1
  • 3
  • 13
3
votes
3 answers

How I can I pan and zoom JComponents?

I am am trying to build a user interface for graphical programming. I would like to use JUNG to handle the graph aspects of the drawing. Rather than draw all of my widgets using Graphics2D, I would like to use Swing widgets as often as possible to…
Jeffrey Guenther
  • 871
  • 10
  • 27
2
votes
2 answers

Is JUNG's DirectedSparseGraph serializable?

Since DirectedSparseGraph implements serializable (javadoc), why can I not create a graph, serialize it to a file, then deserialize it? A "InvalidClassException" is thrown when deserializer.readObject() is called, with the message "no valid…
Crashthatch
  • 1,283
  • 2
  • 13
  • 20
2
votes
2 answers

Subgraph matching (JUNG)

I have a set of subgraphs and I need to match them on the graph they were extracted from. I also need to count how many times each subgraph shows up in such graph (I need to store all possible matches). There must be a perfect match considering the…
Paulo
  • 267
  • 4
  • 14
2
votes
1 answer

JUNG2 - how to scale - make all vertexes visible

I want to write method to autoscale/center the graph. I want to make all vertices visible, even these with large XY coordinates. I'm working with StaticLayout. I was trying to use In other words - i want to display particular piece of cartesian…
przebar
  • 531
  • 1
  • 5
  • 19
2
votes
0 answers

JUNG: setting vertex position on Static Layout

I am trying to allocate fixed coordinate positions for vertices using static layout. Normally we can get vertex coordinate as Point2D object using layout.transform(Vertex); Now i wanted to initialize a layout and set the vertices at specified…
Johnydep
  • 6,027
  • 20
  • 57
  • 74
2
votes
2 answers

JUNG: Saving graph into image file

I use JUNG to visualize my graph / network. Now i want to save the graph (as seen in the VisualizationViewer) in a image file. I use the paint() / paintAll() function of the VisualizationViewer (who extend JPanel). But with this function, only the…
Thargor
  • 1,862
  • 14
  • 24
2
votes
2 answers

JUNG - edge picking (mouse events)

I am having some trouble dealing with pick events on JUNG graphs. I have been using the GraphMouseListener interface to listen for clicks on vertices, but now I need to add support for picking edges, and I can't seem to find a way to do it on the…
pnsilva
  • 655
  • 1
  • 9
  • 20
2
votes
1 answer

JUNG, changing the graph reference on a visualization viewer

We have developed a little graph editor with jung where you can draw graph/networks with your mouse. We use the VisualizationViewer as the panel we draw on. The VisualizationViewer holds the graph it has to display via its containing GraphLayout. We…
user283494
  • 1,897
  • 4
  • 19
  • 26
2
votes
1 answer

How do I use JUNG2 in a MVC-gui?

I was playing around with JUNG2 and wanted to implement a small GUI that allows me to display and change a Graph. Following the examples from the JUNG library worked fine, but they don't separate Model, View and Controller. So I started to build GUI…
grackkle
  • 776
  • 1
  • 9
  • 26
2
votes
1 answer

How to use JUNG layout transformations correctly?

I have got some issues using the DAGLayout algorithm of JUNG and subsequently reading out the layout coordinates into my own data structure again. I have got a Network class with lists of Nodes and Edges. To convert this to a JUNG data structure, I…
Michael Schubert
  • 2,726
  • 4
  • 27
  • 49