Class FPGrowthPlaceFollowGraph

    • Constructor Detail

      • FPGrowthPlaceFollowGraph

        public FPGrowthPlaceFollowGraph()
    • Method Detail

      • 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.AbstractDirectedGraph
        The returned mapping satisfies: map.keySet().containsAll(graph.getNodes()) and map.keySet().containsAll(graph.getEdges())
        Specified by:
        cloneFrom in class org.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.DirectedGraph
        Removes the given edge from the graph.
        Specified by:
        removeEdge in interface org.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,​FPGrowthPlaceFollowGraphEdge>
        Specified by:
        removeEdge in class org.processmining.models.graphbased.directed.AbstractDirectedGraph<FPGrowthPlaceFollowGraphNode,​FPGrowthPlaceFollowGraphEdge>
      • removeNode

        public void removeNode​(org.processmining.models.graphbased.directed.DirectedGraphNode directedGraphNode)
        Specified by:
        removeNode in interface org.processmining.models.graphbased.directed.DirectedGraph<FPGrowthPlaceFollowGraphNode,​FPGrowthPlaceFollowGraphEdge>
      • getNodeId

        public java.lang.Integer getNodeId​(Place place)
      • getEdgeId

        public java.lang.String getEdgeId​(Place source,
                                          Place target)
      • addEdge

        public void addEdge​(Place source,
                            Place target,
                            java.lang.Integer weight)
      • 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
      • getAverageNodeOutDegree

        public double getAverageNodeOutDegree()
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface org.processmining.models.graphbased.directed.DirectedGraphElement
        Overrides:
        equals in class org.processmining.models.graphbased.AbstractGraph
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.processmining.models.graphbased.directed.DirectedGraphElement
        Overrides:
        hashCode in class org.processmining.models.graphbased.AbstractGraph