Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
HyperEdge()
Create an empty hyperedge
|
HyperEdge(java.util.List<DirectedEdge> _innerEdges)
create a hyper edge with the given inner edges
|
Modifier and Type | Method and Description |
---|---|
void |
add(DirectedEdge innerEdge)
add a inner edge to the hyperedge
|
int |
compareTo(HyperEdge hyperEdge)
Compare the weight of the given hyper egde
|
int |
from()
returns the source of the hyperedge
|
java.util.List<DirectedEdge> |
getInnerEdges()
extract the inner edges that compose the hyper edge
|
double |
id()
returns the id of the hyperedge (that corresponds
to the date when was created the hyperedge)
|
boolean |
is_valid()
return if an hyper edges is valid (i.e.
|
boolean |
isIn(DirectedEdge e)
determine wheter a given edge belongs to the hyperedge
|
java.lang.String |
toString()
return a string with the caracteristics of the hyper egde
|
double |
weight()
return the weight of the hyper edge
|
public static final java.lang.String TAG
public HyperEdge()
public HyperEdge(java.util.List<DirectedEdge> _innerEdges)
_innerEdges
- set of inner edges that compose the hyperedgepublic boolean is_valid()
public boolean isIn(DirectedEdge e)
e
- edgepublic double weight()
public int from()
public double id()
public void add(DirectedEdge innerEdge)
innerEdge
- inner edge that should be addedpublic java.util.List<DirectedEdge> getInnerEdges()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(@NonNull HyperEdge hyperEdge)
compareTo
in interface java.lang.Comparable<HyperEdge>
hyperEdge
- hyper edge to compare