Class CSRGraphAdapter

    • Field Detail

      • csrGraph

        protected final CSRGraph csrGraph
    • Constructor Detail

      • CSRGraphAdapter

        public CSRGraphAdapter​(CSRGraph graph)
    • Method Detail

      • addNodeLabel

        public void addNodeLabel​(org.neo4j.gds.NodeLabel nodeLabel)
        Description copied from interface: IdMap
        Adds new node label to the available node labels. The labels is not assigned to any nodes at this point.
        Specified by:
        addNodeLabel in interface IdMap
        Overrides:
        addNodeLabel in class GraphAdapter
        Parameters:
        nodeLabel - the node label to add
      • addNodeIdToLabel

        public void addNodeIdToLabel​(long nodeId,
                                     org.neo4j.gds.NodeLabel nodeLabel)
        Description copied from interface: IdMap
        Assigns a node to the given node label.
        Specified by:
        addNodeIdToLabel in interface IdMap
        Overrides:
        addNodeIdToLabel in class GraphAdapter
        Parameters:
        nodeId - the node id to assign
        nodeLabel - the node label to which the node will be assigned to