adj_stage

package
v0.0.0-...-4d8527f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EDGE_FORMAT = "(%d,%d,%d,%v)\n"

EDGE_FORMAT This format is src, label, destination, incoming

View Source
const FILE_FORMAT string = "s_%d_e_%d.csv"

Variables

View Source
var FileTooLarge = fmt.Errorf("File too large to split")

Functions

func RunAdjacencyStage

func RunAdjacencyStage(nodeCount uint32, configFile string) string

We separate out the logic for edge reading and writing to file.

EdgeProducer reads edges one by one while also mapping string labels to integers.

Parititioner creates partitions for every edge and adds every edge to its correct partition.

Types

type Edge

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

type EdgeProducer

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

type Partition

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

End is exclusive for all but the last partition.

func (*Partition) Close

func (p *Partition) Close()

type Partitioner

type Partitioner []Partition

func (Partitioner) Close

func (p Partitioner) Close()

Jump to

Keyboard shortcuts

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