Edge extends GraphObject { public long getToNodeId() { return toNodeId; } Edge();  Edge(long from, long to);  Edge(long from, long to, double cost); long getId(); void setId(long id); long getFromNodeId(); long getToNodeId(); double getWeight(); void setFromNodeId(long fromNode); void setToNodeId(long toNode); void setWeight(double weight); void setBidirectional(boolean bidirectional); boolean isBidirectional(); void invert(); long getAdjacent(long id); void addComponent(EdgeComponent component); void addComponent(Class<? extends EdgeComponent> key, EdgeComponent component); C getComponent(Class<C> componentClass); boolean hasComponent(Class<? extends EdgeComponent> key); Set<Class<? extends EdgeComponent>> getAllComponentClasses(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testToNode() { assertEquals("To node is wrong",1l,e.getToNodeId()); }