graph

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package graph contains functions to create and write graphML It uses https://github.com/yaricom/goGraphML see readme there

Package graph contains functions to create and write graphML It uses https://github.com/yaricom/goGraphML see readme there

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteGraph

func WriteGraph(filename string, gr *graphml.GraphML) error

Types

type CreationResult

type CreationResult struct {
	Nodes  int
	Edges  int
	Events int
}

func CreateGraph

func CreateGraph(graphTitle string,
	events []*chain.TransferEvent) (
	graphMlRoot *graphml.GraphML,
	graphCreationResult CreationResult)

CreateGraph creates a GraphML graph from a slice of TransferEvents. CreateGraph does not care what selections were used to produce the slice of TransferEvents, for example a selection by address, or by block, or filtered by a single token, it does not know or care it just blindly converts events to a graph.

func (CreationResult) PrintSummary

func (creationResult CreationResult) PrintSummary()

type TokenAddressCount

type TokenAddressCount struct {
	Address string
	Count   int
}

Jump to

Keyboard shortcuts

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