Documentation

Overview

    Package encoding provides a common graph encoding API.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type Attribute

    type Attribute struct {
    	Key, Value string
    }

      Attribute is an encoded key value attribute pair use in graph encoding.

      type AttributeSetter

      type AttributeSetter interface {
      	SetAttribute(Attribute) error
      }

        AttributeSetter is implemented by types that can set an encoded graph attribute.

        type Attributer

        type Attributer interface {
        	Attributes() []Attribute
        }

          Attributer defines graph.Node or graph.Edge values that can specify graph attributes.

          type Builder

          type Builder interface {
          	graph.Graph
          	graph.Builder
          }

            Builder is a graph that can have user-defined nodes and edges added.

            type MultiBuilder

            type MultiBuilder interface {
            	graph.Multigraph
            	graph.MultigraphBuilder
            }

              MultiBuilder is a graph that can have user-defined nodes and edges added.

              Source Files

              Directories

              Path Synopsis
              Package digraph6 implements graphs specified by digraph6 strings.
              Package digraph6 implements graphs specified by digraph6 strings.
              Package dot implements GraphViz DOT marshaling and unmarshaling of graphs.
              Package dot implements GraphViz DOT marshaling and unmarshaling of graphs.
              Package graph6 implements graphs specified by graph6 strings.
              Package graph6 implements graphs specified by graph6 strings.
              Package graphql implements JSON marshaling and unmarshaling of graph as used by GraphQL
              Package graphql implements JSON marshaling and unmarshaling of graph as used by GraphQL