graphutils

package
v0.0.0-...-02c76fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetadata

func AddMetadata(g *graph.Graph, id, key string, value interface{}) error

AddMetadata will insert metadata into the graph at the provided node. It returns an error if the id doesn't exist or the metadata key does.

func DependsOn

func DependsOn(g *graph.Graph, source, target string) bool

DependsOn returns true if target and source both exist in the graph, and there is a direct or transative dependency on target from source.

func GetMetadata

func GetMetadata(g *graph.Graph, id, key string) (interface{}, error)

GetMetadata will lookup the metadata key from a graph node and return it. It returns an error if the node doesn't exist, or the metadata key isn't found.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL