Questions tagged [jgrapht]

JGraphT is a free Java graph library that provides mathematical graph-theory objects and algorithms.

JGraphT supports various types of graphs including:

  • directed and undirected graphs.
  • graphs with weighted / unweighted / labeled or any user-defined edges.
  • various edge multiplicity options, including: simple-graphs, multigraphs, pseudographs.
  • unmodifiable graphs - allow modules to provide "read-only" access to internal graphs.
  • listenable graphs - allow external listeners to track modification events.
  • subgraphs graphs that are auto-updating subgraph views on other graphs.
  • all compositions of above graphs. Although powerful, JGraphT is designed to be simple and type-safe (via Java generics). For example, graph vertices can be of any objects. You can create graphs based on: Strings, URLs, XML documents, etc; you can even create graphs of graphs! This code example shows how.

Other features offered by JGraphT:

  • graph visualization using the JGraph library
  • complete source code included, under the terms of the GNU Lesser General Public License.
  • comprehensive Javadocs.
  • easy extensibility.

Official website: http://jgrapht.org/

303 questions
-2
votes
1 answer

Error in changing a vertex style

I am trying to change the style of a vertex v4 with the following code. I get error though with changing the style. I have tried to do other actions instead like setVisible(false) and it works. So it must be the method that I am using. What should I…
user2598911
  • 379
  • 2
  • 6
  • 22
-3
votes
1 answer

Null Pointer exception JAVA. why is it null when the input file is not null?

i am new to JAVA. I think all my code is corect. I dont actually know what is wrong with my code but it shows error. Error: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "F28DA_CW2.FlightsReader.getAirports()" because…
1 2 3
20
21