Index: src/Common/NetTopologySuite/Operation/Linemerge/LineMergeGraph.cs
===================================================================
diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a
--- src/Common/NetTopologySuite/Operation/Linemerge/LineMergeGraph.cs (.../LineMergeGraph.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9)
+++ src/Common/NetTopologySuite/Operation/Linemerge/LineMergeGraph.cs (.../LineMergeGraph.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a)
@@ -10,7 +10,7 @@
/// and com.vividsolutions.planargraph.Nodes indicates whether they have been
/// logically deleted from the graph.
///
- public class LineMergeGraph : PlanarGraph
+ public class LineMergeGraph : PlanarGraph
{
///
/// Adds an Edge, DirectedEdges, and Nodes for the given LineString representation
@@ -19,16 +19,18 @@
public void AddEdge(ILineString lineString)
{
if (lineString.IsEmpty)
+ {
return;
+ }
ICoordinate[] coordinates = CoordinateArrays.RemoveRepeatedPoints(lineString.Coordinates);
ICoordinate startCoordinate = coordinates[0];
ICoordinate endCoordinate = coordinates[coordinates.Length - 1];
Node startNode = GetNode(startCoordinate);
Node endNode = GetNode(endCoordinate);
- DirectedEdge directedEdge0 = new LineMergeDirectedEdge(startNode, endNode,
- coordinates[1], true);
- DirectedEdge directedEdge1 = new LineMergeDirectedEdge(endNode, startNode,
- coordinates[coordinates.Length - 2], false);
+ DirectedEdge directedEdge0 = new LineMergeDirectedEdge(startNode, endNode,
+ coordinates[1], true);
+ DirectedEdge directedEdge1 = new LineMergeDirectedEdge(endNode, startNode,
+ coordinates[coordinates.Length - 2], false);
Edge edge = new LineMergeEdge(lineString);
edge.SetDirectedEdges(directedEdge0, directedEdge1);
Add(edge);
@@ -39,15 +41,15 @@
///
///
///
- private Node GetNode(ICoordinate coordinate)
+ private Node GetNode(ICoordinate coordinate)
{
Node node = FindNode(coordinate);
- if (node == null)
+ if (node == null)
{
node = new Node(coordinate);
Add(node);
}
return node;
}
}
-}
+}
\ No newline at end of file