Documentation of 'cc.redberry.core.graph.PrimitiveSubgraphPartition' Java class
PrimitiveSubgraphPartition
cc.redberry.core.graph

Class PrimitiveSubgraphPartition



  • public final class PrimitiveSubgraphPartition
    extends java.lang.Object
    This class represents a partition of graph into sub-graphs of types specified in GraphType. Such a partition takes into account links (dummy indices) of single IndexType (specified as parameter).
    Since:
    1.1
    • Constructor Detail

      • PrimitiveSubgraphPartition

        public PrimitiveSubgraphPartition(ProductContent productContent,
                                          IndexType type)
        Creates partition of graph (or equivalently the product of indexed tensors) specified by ProductContent taking into account edges (dummy indices) of specified IndexType.
        Parameters:
        productContent - ProductContent representing the graph
        type - type of edges to be taken into account in partition
    • Method Detail

      • getPartition

        public PrimitiveSubgraph[] getPartition()
        Returns the partition of graph, i.e. an array of all its sub-graphs.
        Returns:
        the partition of graph, i.e. an array of all its sub-graphs
      • calculatePartition

        public static PrimitiveSubgraph[] calculatePartition(Product p,
                                                             IndexType type)
        Creates a partition of graph (or equivalently the product of indexed tensors) specified by Product taking into account edges (dummy indices) of specified IndexType. This method returns an array of all its sub-graphs of types specified by GraphType. Note, that only indexed part of specified product (i.e. its ProductContent) will be taken into account. So the positions of sub-graphs elements in PrimitiveSubgraph may not be equal to the positions of tensors in product (since it can e.g. have a symbolic part), but strictly corresponds to the positions of tensors in its ProductContent, i.e. in the indexed part of the product.
        Parameters:
        p - Product representing the graph
        type - type of edges to be taken into account in partition
        Returns:
        the partition of graph, i.e. an array of all its sub-graphs of types specified by GraphType
        Since:
        1.1
      • calculatePartition

        public static PrimitiveSubgraph[] calculatePartition(ProductContent p,
                                                             IndexType type)
        Creates partition of graph (or equivalently the product of indexed tensors) specified by ProductContent taking into account edges (dummy indices) of specified IndexType. This method returns an array of all its sub-graphs of types specified by GraphType.
        Parameters:
        p - ProductContent representing the graph
        type - type of edges to be taken into account in partition
        Since:
        1.1

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.