Class FPGrowthPlaceFollowGraph
- java.lang.Object
-
- org.processmining.models.graphbased.AbstractGraphElement
-
- org.processmining.models.graphbased.AbstractGraph
-
- org.processmining.models.graphbased.directed.AbstractDirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>
-
- org.processmining.placebasedlpmdiscovery.model.fpgrowth.FPGrowthPlaceFollowGraph
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<org.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>>,org.processmining.models.graphbased.AttributeMapOwner,org.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>,org.processmining.models.graphbased.directed.DirectedGraphElement
public class FPGrowthPlaceFollowGraph extends org.processmining.models.graphbased.directed.AbstractDirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge> implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FPGrowthPlaceFollowGraph()FPGrowthPlaceFollowGraph(FPGrowthPlaceFollowGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEdge(Place source, Place target, java.lang.Integer weight)protected java.util.Map<? extends org.processmining.models.graphbased.directed.DirectedGraphElement,? extends org.processmining.models.graphbased.directed.DirectedGraphElement>cloneFrom(org.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge> directedGraph)The returned mapping satisfies: map.keySet().containsAll(graph.getNodes()) and map.keySet().containsAll(graph.getEdges())FPGrowthPlaceFollowGraphdiscardEdges(int discardPercentage)Discards some of the edges in the graph.voiddiscardLowWeightEdges(int percentageFromMaxWeight)Discards edges that have lower weight than percentageFromMaxWeight percentage of the maximal weightbooleanequals(java.lang.Object o)doublegetAverageNodeOutDegree()FPGrowthPlaceFollowGraphEdgegetEdge(java.lang.String id)java.lang.StringgetEdgeId(FPGrowthPlaceFollowGraphNode source, FPGrowthPlaceFollowGraphNode target)java.lang.StringgetEdgeId(Place source, Place target)java.util.Set<FPGrowthPlaceFollowGraphEdge>getEdges()protected org.processmining.models.graphbased.directed.AbstractDirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>getEmptyClone()FPGrowthPlaceFollowGraphNodegetNode(Place place)java.lang.IntegergetNodeId(Place place)java.util.Set<FPGrowthPlaceFollowGraphNode>getNodes()java.util.Set<FPGrowthPlaceFollowGraphNode>getNodesForDegree(int count, int degree)inthashCode()voidremoveEdge(org.processmining.models.graphbased.directed.DirectedGraphEdge directedGraphEdge)Removes the given edge from the graph.voidremoveNode(org.processmining.models.graphbased.directed.DirectedGraphNode directedGraphNode)-
Methods inherited from class org.processmining.models.graphbased.directed.AbstractDirectedGraph
checkAddEdge, compareTo, getGraph, getInEdges, getOutEdges, graphElementAdded, graphElementChanged, graphElementRemoved, removeSurroundingEdges
-
Methods inherited from class org.processmining.models.graphbased.AbstractGraph
getEdges, removeFromEdges, removeNodeFromCollection
-
Methods inherited from class org.processmining.models.graphbased.AbstractGraphElement
getAttributeMap, getLabel, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
FPGrowthPlaceFollowGraph
public FPGrowthPlaceFollowGraph()
-
FPGrowthPlaceFollowGraph
public FPGrowthPlaceFollowGraph(FPGrowthPlaceFollowGraph graph)
-
-
Method Detail
-
getEmptyClone
protected org.processmining.models.graphbased.directed.AbstractDirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge> getEmptyClone()
- Specified by:
getEmptyClonein classorg.processmining.models.graphbased.directed.AbstractDirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>
-
cloneFrom
protected java.util.Map<? extends org.processmining.models.graphbased.directed.DirectedGraphElement,? extends org.processmining.models.graphbased.directed.DirectedGraphElement> cloneFrom(org.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge> directedGraph)
Description copied from class:org.processmining.models.graphbased.directed.AbstractDirectedGraphThe returned mapping satisfies: map.keySet().containsAll(graph.getNodes()) and map.keySet().containsAll(graph.getEdges())- Specified by:
cloneFromin classorg.processmining.models.graphbased.directed.AbstractDirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>- Returns:
-
removeEdge
public void removeEdge(org.processmining.models.graphbased.directed.DirectedGraphEdge directedGraphEdge)
Description copied from interface:org.processmining.models.graphbased.directed.DirectedGraphRemoves the given edge from the graph.- Specified by:
removeEdgein interfaceorg.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>- Specified by:
removeEdgein classorg.processmining.models.graphbased.directed.AbstractDirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>
-
removeNode
public void removeNode(org.processmining.models.graphbased.directed.DirectedGraphNode directedGraphNode)
- Specified by:
removeNodein interfaceorg.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>
-
getNodeId
public java.lang.Integer getNodeId(Place place)
-
getEdgeId
public java.lang.String getEdgeId(FPGrowthPlaceFollowGraphNode source, FPGrowthPlaceFollowGraphNode target)
-
getNode
public FPGrowthPlaceFollowGraphNode getNode(Place place)
-
getEdge
public FPGrowthPlaceFollowGraphEdge getEdge(java.lang.String id)
-
discardEdges
public FPGrowthPlaceFollowGraph discardEdges(int discardPercentage)
Discards some of the edges in the graph. Only keeps (100 - discardPercentage) percentages of the edges- Parameters:
discardPercentage- : the percentage of edges we want to discard- Returns:
- new graph in which the edges are discarded
-
discardLowWeightEdges
public void discardLowWeightEdges(int percentageFromMaxWeight)
Discards edges that have lower weight than percentageFromMaxWeight percentage of the maximal weight- Parameters:
percentageFromMaxWeight- : the percentage of the maximal weight that every weight must be above
-
getNodes
public java.util.Set<FPGrowthPlaceFollowGraphNode> getNodes()
- Specified by:
getNodesin interfaceorg.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>
-
getEdges
public java.util.Set<FPGrowthPlaceFollowGraphEdge> getEdges()
- Specified by:
getEdgesin interfaceorg.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,FPGrowthPlaceFollowGraphEdge>
-
getAverageNodeOutDegree
public double getAverageNodeOutDegree()
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfaceorg.processmining.models.graphbased.directed.DirectedGraphElement- Overrides:
equalsin classorg.processmining.models.graphbased.AbstractGraph
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceorg.processmining.models.graphbased.directed.DirectedGraphElement- Overrides:
hashCodein classorg.processmining.models.graphbased.AbstractGraph
-
getNodesForDegree
public java.util.Set<FPGrowthPlaceFollowGraphNode> getNodesForDegree(int count, int degree)
-
-