com.vividsolutions.jts.planargraph

Class GraphComponent

Known Direct Subclasses:
DirectedEdge, Edge, Node

public class GraphComponent
extends java.lang.Object

The base class for all graph component classes. Maintains flags of use in generic graph algorithms. Provides two flags:
Version:
1.6

Field Summary

protected boolean
isMarked
protected boolean
isVisited

Constructor Summary

GraphComponent()

Method Summary

boolean
isMarked()
Tests if a component has been marked at some point during the processing involving this graph.
boolean
isVisited()
Tests if a component has been visited during the course of a graph algorithm
void
setMarked(boolean isMarked)
Sets the marked flag for this component.
void
setVisited(boolean isVisited)
Sets the visited flag for this component.

Field Details

isMarked

protected boolean isMarked

isVisited

protected boolean isVisited

Constructor Details

GraphComponent

public GraphComponent()

Method Details

isMarked

public boolean isMarked()
Tests if a component has been marked at some point during the processing involving this graph.
Returns:
true if the component has been marked

isVisited

public boolean isVisited()
Tests if a component has been visited during the course of a graph algorithm
Returns:
true if the component has been visited

setMarked

public void setMarked(boolean isMarked)
Sets the marked flag for this component.
Parameters:
isMarked - the desired value of the marked flag

setVisited

public void setVisited(boolean isVisited)
Sets the visited flag for this component.
Parameters:
isVisited - the desired value of the visited flag