An open API service indexing awesome lists of open source software.

https://github.com/deric/jgraph-search-gui


https://github.com/deric/jgraph-search-gui

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

jgraph-search-gui
=================

A Java GUI for testing graph search algorithms (BFS, DFS, A*, etc.)

Each algorithm should implement either `UninformedSearch` or `InformedSearch` interface.

```java
@ServiceProvider(service = AbstractAlgorithm.class, position = 5)
public class DFS extends AbstractAlgorithm implements UninformedSearch {

private static String name = "DFS";

@Override
public String getName() {
return name;
}

@Override
public List findPath(Node startNode) {
return null;
}
}
```

When you add new algorithms you have to modify `META-INF/services/cz.cvut.fit.zum.api.AbstractAlgorithm` and add there your
full class name. Then your algorithm could be in different jar, just make sure it's added to java's claspath.

![jgraph-search-gui preview](https://raw.github.com/deric/jgraph-search-gui/screenshots/screenshots/jgraph-gui-0.1.0.png)

## Build

single jar with dependencies:

```
$ mvn clean compile assembly:single
```