Class GraphStoreAdapter

    • Constructor Detail

      • GraphStoreAdapter

        protected GraphStoreAdapter​(GraphStore graphStore)
    • Method Detail

      • schema

        public org.neo4j.gds.api.schema.GraphSchema schema()
        Specified by:
        schema in interface GraphStore
      • graphPropertyKeys

        public java.util.Set<java.lang.String> graphPropertyKeys()
        Specified by:
        graphPropertyKeys in interface GraphStore
      • hasGraphProperty

        public boolean hasGraphProperty​(java.lang.String propertyKey)
        Specified by:
        hasGraphProperty in interface GraphStore
      • graphPropertyType

        public org.neo4j.gds.api.nodeproperties.ValueType graphPropertyType​(java.lang.String propertyKey)
        Specified by:
        graphPropertyType in interface GraphStore
      • removeGraphProperty

        public void removeGraphProperty​(java.lang.String propertyKey)
        Specified by:
        removeGraphProperty in interface GraphStore
      • nodeLabels

        public java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels()
        Specified by:
        nodeLabels in interface GraphStore
      • addNodeLabel

        public void addNodeLabel​(org.neo4j.gds.NodeLabel nodeLabel)
        Description copied from interface: GraphStore
        Add a new Node label to the Graph Store.
        Specified by:
        addNodeLabel in interface GraphStore
        Parameters:
        nodeLabel - the Node label to add
      • nodePropertyKeys

        public java.util.Set<java.lang.String> nodePropertyKeys​(org.neo4j.gds.NodeLabel label)
        Specified by:
        nodePropertyKeys in interface GraphStore
      • nodePropertyKeys

        public java.util.Set<java.lang.String> nodePropertyKeys()
        Specified by:
        nodePropertyKeys in interface GraphStore
      • hasNodeProperty

        public boolean hasNodeProperty​(java.lang.String propertyKey)
        Specified by:
        hasNodeProperty in interface GraphStore
      • hasNodeProperty

        public boolean hasNodeProperty​(org.neo4j.gds.NodeLabel label,
                                       java.lang.String propertyKey)
        Specified by:
        hasNodeProperty in interface GraphStore
      • hasNodeProperty

        public boolean hasNodeProperty​(java.util.Collection<org.neo4j.gds.NodeLabel> labels,
                                       java.lang.String propertyKey)
        Specified by:
        hasNodeProperty in interface GraphStore
      • nodePropertyKeys

        public java.util.Collection<java.lang.String> nodePropertyKeys​(java.util.Collection<org.neo4j.gds.NodeLabel> labels)
        Specified by:
        nodePropertyKeys in interface GraphStore
      • addNodeProperty

        public void addNodeProperty​(java.util.Set<org.neo4j.gds.NodeLabel> nodeLabels,
                                    java.lang.String propertyKey,
                                    NodePropertyValues propertyValues)
        Specified by:
        addNodeProperty in interface GraphStore
      • removeNodeProperty

        public void removeNodeProperty​(java.lang.String propertyKey)
        Specified by:
        removeNodeProperty in interface GraphStore
      • relationshipCount

        public long relationshipCount​(org.neo4j.gds.RelationshipType relationshipType)
        Specified by:
        relationshipCount in interface GraphStore
      • relationshipTypes

        public java.util.Set<org.neo4j.gds.RelationshipType> relationshipTypes()
        Specified by:
        relationshipTypes in interface GraphStore
      • hasRelationshipType

        public boolean hasRelationshipType​(org.neo4j.gds.RelationshipType relationshipType)
        Specified by:
        hasRelationshipType in interface GraphStore
      • hasRelationshipProperty

        public boolean hasRelationshipProperty​(org.neo4j.gds.RelationshipType relType,
                                               java.lang.String propertyKey)
        Specified by:
        hasRelationshipProperty in interface GraphStore
      • relationshipPropertyKeys

        public java.util.Collection<java.lang.String> relationshipPropertyKeys​(java.util.Collection<org.neo4j.gds.RelationshipType> relTypes)
        Specified by:
        relationshipPropertyKeys in interface GraphStore
      • relationshipPropertyType

        public org.neo4j.gds.api.nodeproperties.ValueType relationshipPropertyType​(java.lang.String propertyKey)
        Specified by:
        relationshipPropertyType in interface GraphStore
      • relationshipPropertyKeys

        public java.util.Set<java.lang.String> relationshipPropertyKeys​(org.neo4j.gds.RelationshipType relationshipType)
        Specified by:
        relationshipPropertyKeys in interface GraphStore
      • getGraph

        public Graph getGraph​(org.neo4j.gds.NodeLabel nodeLabel)
        Description copied from interface: GraphStore
        Returns a graph containing only nodes with the given node label and no relationships.
        Specified by:
        getGraph in interface GraphStore
        Parameters:
        nodeLabel - node label filter
        Returns:
        a node-only graph
      • getGraph

        public Graph getGraph​(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels)
        Description copied from interface: GraphStore
        Returns a graph containing only nodes with the given node labels and no relationships.
        Specified by:
        getGraph in interface GraphStore
        Parameters:
        nodeLabels - node label filter
        Returns:
        a node-only graph
      • getGraph

        public Graph getGraph​(org.neo4j.gds.RelationshipType... relationshipType)
        Specified by:
        getGraph in interface GraphStore
      • getGraph

        public Graph getGraph​(java.lang.String relationshipProperty)
        Specified by:
        getGraph in interface GraphStore
      • getGraph

        public Graph getGraph​(org.neo4j.gds.RelationshipType relationshipType,
                              java.util.Optional<java.lang.String> relationshipProperty)
        Specified by:
        getGraph in interface GraphStore
      • getGraph

        public Graph getGraph​(java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes,
                              java.util.Optional<java.lang.String> maybeRelationshipProperty)
        Specified by:
        getGraph in interface GraphStore
      • getGraph

        public Graph getGraph​(java.lang.String nodeLabel,
                              java.lang.String relationshipType,
                              java.util.Optional<java.lang.String> maybeRelationshipProperty)
        Specified by:
        getGraph in interface GraphStore
      • getGraph

        public Graph getGraph​(org.neo4j.gds.NodeLabel nodeLabel,
                              org.neo4j.gds.RelationshipType relationshipType,
                              java.util.Optional<java.lang.String> maybeRelationshipProperty)
        Specified by:
        getGraph in interface GraphStore
      • getGraph

        public Graph getGraph​(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels,
                              java.util.Collection<org.neo4j.gds.RelationshipType> relationshipTypes,
                              java.util.Optional<java.lang.String> maybeRelationshipProperty)
        Specified by:
        getGraph in interface GraphStore