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

Class PrimitiveSubgraph



  • public final class PrimitiveSubgraph
    extends java.lang.Object
    Sub-graph of graph. This class is simply holds GraphType of sub-graph and indices of its elements in the whole graph.
    Since:
    1.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      GraphType getGraphType()
      Returns sub-graph type
      int[] getPartition()
      Returns positions of sub-graph elements in the whole graph.
      int getPosition(int i)
      Returns actual position of i-th tensor in sub-graph.
      int size()
      Returns size of subgrph.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PrimitiveSubgraph

        public PrimitiveSubgraph(GraphType graphType,
                                 int[] partition)
        Parameters:
        graphType - type of sub-graph
        partition - positions of sub-graph elements in the whole graph
    • Method Detail

      • getGraphType

        public GraphType getGraphType()
        Returns sub-graph type
        Returns:
        sub-graph type
      • getPartition

        public int[] getPartition()
        Returns positions of sub-graph elements in the whole graph.
        Returns:
        positions of sub-graph elements in the whole graph
      • getPosition

        public int getPosition(int i)
        Returns actual position of i-th tensor in sub-graph.
        Parameters:
        i - position in tensor
        Returns:
        position in graph
      • size

        public int size()
        Returns size of subgrph.
        Returns:
        size of subgrph
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.