Package com.macrofocus.molap.network
Class SimpleNetwork<Node,Link,Column,Value>
- java.lang.Object
-
- com.macrofocus.molap.network.AbstractNetwork<Node,Link,Column,Value>
-
- com.macrofocus.molap.network.SimpleNetwork<Node,Link,Column,Value>
-
public class SimpleNetwork<Node,Link,Column,Value> extends AbstractNetwork<Node,Link,Column,Value>
Created by luc on 05/07/16.
-
-
Constructor Summary
Constructors Constructor Description SimpleNetwork(DataFrame<Link,Column,Value> dataFrame)
SimpleNetwork(DataFrame<Link,Column,Value> dataFrame, Column from, Column to)
SimpleNetwork(DataFrame<Link,Column,Value> dataFrame, DataFrame<Node,Column,Value> providedNodesDataFrame, com.macrofocus.selection.MutableSingleSelection<Column> id, com.macrofocus.selection.SingleSelection<Column> from, com.macrofocus.selection.SingleSelection<Column> to, com.macrofocus.selection.SingleSelection<Column> weight, com.macrofocus.selection.MutableSingleSelection<Column> aggregateBy, com.macrofocus.selection.SingleSelection<java.lang.Boolean> directed, com.macrofocus.selection.SingleSelection<java.lang.Boolean> loops)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.macrofocus.selection.SingleSelection<java.lang.Boolean>
getDirected()
java.lang.Iterable<Link>
getEdges()
java.lang.Iterable<Link>
getEdges(Node node)
java.lang.Iterable<Link>
getEdgesFrom(Node from)
int
getEdgesFromCount(Node from)
java.lang.Iterable<Link>
getEdgesTo(Node to)
com.macrofocus.selection.SingleSelection<Column>
getFrom()
Node
getFrom(Link link)
com.macrofocus.selection.SingleSelection<Column>
getId()
DataFrame<Link,Column,Value>
getLinksDataFrame()
int
getMaxEdgesCount()
DataFrame<Node,Column,Value>
getNodesDataFrame()
Link
getReverse(Link link)
com.macrofocus.selection.SingleSelection<Column>
getTo()
Node
getTo(Link link)
java.lang.Iterable<Node>
getVertices()
int
getVerticesCount()
UniqueIndex<Node>
getVerticesIndex()
com.macrofocus.selection.SingleSelection<Column>
getWeight()
Value
getWeight(Link link)
DistributiveStatistics
getWeightDistributiveStatistics()
boolean
isAdjacentNode(Node node, Node nodeToAlign)
void
setProvidedNodesDataFrame(DataFrame<Node,Column,Value> providedNodesDataFrame)
-
Methods inherited from class com.macrofocus.molap.network.AbstractNetwork
addNetworkListener, notifyNetworkChanged, removeNetworkListener
-
-
-
-
Constructor Detail
-
SimpleNetwork
public SimpleNetwork(DataFrame<Link,Column,Value> dataFrame, Column from, Column to)
-
SimpleNetwork
public SimpleNetwork(DataFrame<Link,Column,Value> dataFrame, DataFrame<Node,Column,Value> providedNodesDataFrame, com.macrofocus.selection.MutableSingleSelection<Column> id, com.macrofocus.selection.SingleSelection<Column> from, com.macrofocus.selection.SingleSelection<Column> to, com.macrofocus.selection.SingleSelection<Column> weight, com.macrofocus.selection.MutableSingleSelection<Column> aggregateBy, com.macrofocus.selection.SingleSelection<java.lang.Boolean> directed, com.macrofocus.selection.SingleSelection<java.lang.Boolean> loops)
-
-
Method Detail
-
setProvidedNodesDataFrame
public void setProvidedNodesDataFrame(DataFrame<Node,Column,Value> providedNodesDataFrame)
-
getVerticesCount
public int getVerticesCount()
-
getVertices
public java.lang.Iterable<Node> getVertices()
-
getVerticesIndex
public UniqueIndex<Node> getVerticesIndex()
-
getEdges
public java.lang.Iterable<Link> getEdges()
-
getEdgesFromCount
public int getEdgesFromCount(Node from)
-
getMaxEdgesCount
public int getMaxEdgesCount()
-
getId
public com.macrofocus.selection.SingleSelection<Column> getId()
-
getFrom
public com.macrofocus.selection.SingleSelection<Column> getFrom()
-
getTo
public com.macrofocus.selection.SingleSelection<Column> getTo()
-
getWeight
public com.macrofocus.selection.SingleSelection<Column> getWeight()
-
getDirected
public com.macrofocus.selection.SingleSelection<java.lang.Boolean> getDirected()
-
getWeightDistributiveStatistics
public DistributiveStatistics getWeightDistributiveStatistics()
-
-