in graph/src/main/java/org/apache/archiva/components/graph/base/SimpleNode.java [85:99]
protected void addEdge( Edge<SimpleNode> edge )
{
if ( edge.getSource( ) == this )
{
outEdges.add( edge );
}
else if ( edge.getDestination( ) == this )
{
inEdges.add( edge );
}
else
{
throw new IllegalArgumentException( "The given edge does not contain this node" );
}
}