gexf

package
v0.0.0-...-c7fa441 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRelation = "Undefined"
)

Variables

This section is empty.

Functions

func NewEdge

func NewEdge(id int, e graph.Edge) *gexf12.Edge

func NewNode

func NewNode(n graph.Node) *gexf12.Node

Types

type Marshaler

type Marshaler struct {
	// contains filtered or unexported fields
}

Marshaler is used for marshaling graphs.

func NewMarshaler

func NewMarshaler(name, prefix, indent string) (*Marshaler, error)

NewMarshaler creates a new graph marshaler and returns it.

func (*Marshaler) Marshal

func (m *Marshaler) Marshal(g graph.Graph) ([]byte, error)

Marshal marshals g into format that can be used by Gephi https://gephi.org/ To learn more about Gexf see here: https://gephi.org/gexf/format/

Jump to

Keyboard shortcuts

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