|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocope.data.networks.NetworkEdge
public class NetworkEdge
Represents one edge in a ProteinNetwork. Contains the IDs of both involved proteins, the weight of the edge and any annotations associated with this edge. The class is not instantiatable outside of the package.
Note:Source and target information are not relevant for undirected networks.
Method Summary | |
---|---|
int |
compareTo(NetworkEdge o)
Compare this network edge with another. |
Object |
getAnnotation(String key)
Retrieves a single annotation from the annotation list |
Map<String,Object> |
getAnnotations()
Returns all annotations associated with this edge |
int |
getSource()
Returns the protein from which this edge is originating. |
int |
getTarget()
Returns the protein to which this edge is leading. |
float |
getWeight()
Returns the weight of this edge |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getSource()
public int getTarget()
public float getWeight()
Float.NaN
if the edge has no
weight associatedpublic Map<String,Object> getAnnotations()
public Object getAnnotation(String key)
key
- key of the annotation
null
if no value
is associated with that keypublic int compareTo(NetworkEdge o)
compareTo
in interface Comparable<NetworkEdge>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |