2

Trying to run the JGraphT hello world example, POM per here looks like:

<groupId>org.jgrapht</groupId>
<artifactId>jgrapht-core</artifactId>
<version>1.4.0</version>

But this is not pulling down the org.jgrapht.nio.* it seems, file tree below:

enter image description here

What do I need in the POM to do these successfully:

import org.jgrapht.nio.*;
import org.jgrapht.nio.dot.DOTExporter;

Thanks

shanlodh
  • 1,015
  • 2
  • 11
  • 30

1 Answers1

3

For me, it works when I add this following dependency :

<dependency>
        <groupId>org.jgrapht</groupId>
        <artifactId>jgrapht-io</artifactId>
        <version>1.4.0</version>
    </dependency>

in the pom.xml file.

After that, import the dependency in your file of code :

import org.jgrapht.nio.*;
Gabriel
  • 67
  • 9