cc.redberry.core.graph
Class PrimitiveSubgraphPartition
- java.lang.Object
-
- cc.redberry.core.graph.PrimitiveSubgraphPartition
-
-
Constructor Summary
Constructors Constructor and Description PrimitiveSubgraphPartition(ProductContent productContent, IndexType type)Creates partition of graph (or equivalently the product of indexed tensors) specified byProductContenttaking into account edges (dummy indices) of specifiedIndexType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static PrimitiveSubgraph[]calculatePartition(ProductContent p, IndexType type)Creates partition of graph (or equivalently the product of indexed tensors) specified byProductContenttaking into account edges (dummy indices) of specifiedIndexType.static PrimitiveSubgraph[]calculatePartition(Product p, IndexType type)PrimitiveSubgraph[]getPartition()Returns the partition of graph, i.e.
-
-
-
Constructor Detail
-
PrimitiveSubgraphPartition
public PrimitiveSubgraphPartition(ProductContent productContent, IndexType type)
Creates partition of graph (or equivalently the product of indexed tensors) specified byProductContenttaking into account edges (dummy indices) of specifiedIndexType.- Parameters:
productContent-ProductContentrepresenting the graphtype- 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 byProducttaking into account edges (dummy indices) of specifiedIndexType. This method returns an array of all its sub-graphs of types specified byGraphType. Note, that only indexed part of specified product (i.e. itsProductContent) will be taken into account. So the positions of sub-graphs elements inPrimitiveSubgraphmay 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 itsProductContent, i.e. in the indexed part of the product.
-
calculatePartition
public static PrimitiveSubgraph[] calculatePartition(ProductContent p, IndexType type)
Creates partition of graph (or equivalently the product of indexed tensors) specified byProductContenttaking into account edges (dummy indices) of specifiedIndexType. This method returns an array of all its sub-graphs of types specified byGraphType.- Parameters:
p-ProductContentrepresenting the graphtype- type of edges to be taken into account in partition- Since:
- 1.1
-
-
DataMelt 3.0 © DataMelt by jWork.ORG