import ( "github.com/openshift/origin/pkg/api/graph" "fmt" ) func main() { g := graph.New() fmt.Println(g) }
import ( "github.com/openshift/origin/pkg/api/graph" "fmt" ) func main() { g, _ := graph.Parse("A->B") fmt.Println(g) }This example shows how to parse a graph using the Graph package. The `graph.Parse()` function takes a string representation of a graph and returns a new graph instance. Here, the string "A->B" represents a simple graph with two nodes, A and B, connected by a directed edge. In summary, the github.com.openshift.origin.pkg.api.graph Graph package is a package for managing graphs on the OpenShift Origin platform. It provides functionality for creating, parsing, and manipulating graphs, as well as performing various operations on them.