| |
|
| org.geotools.graph.util.GraphFuserTest
GraphFuserTest | public class GraphFuserTest extends TestCase (Code) | | |
test_0 | public void test_0()(Code) | | Create a no bifurcation graph and fuse it.
Expected: 1. Resulting graph should only have 2 nodes and 1 edge.
O---O---O-...-O---O---O ==FUSER=> O-------...-------O
|
test_1 | public void test_1()(Code) | | Build a no bifurcation graph and then add a cycle containing two adjacent
nodes and fuse.
Expected: 1. The graph should have 4 nodes and 4 edges.
___ ___
/ \ / \
O---O-...-O O-...-O---O ==FUSER=> O--...--O O--...--O
\___/ \___/
|
test_2 | public void test_2()(Code) | | Create a graph with no bifurcations and a cycle between containing three
nodes and fuse it.
Expected: 1. The graph should have 4 nodes and 4 edges.
_____ _____
/ \ / \
O---O-...-O---O---O-...-O---O ==FUSER=> O--...-O------O-...--O
|
test_3 | public void test_3()(Code) | | Create a circular graph and fuse it.
Expected: 1. The graph should have 1 node and 1 edge, a loop on one node.
|
|
|
|