netStressD

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Results of comparison.
	Lt = Comp(-1) // less than
	Eq = Comp(0)  //equal
	Gt = Comp(+1) //greater than

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Centrals

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

func (*Centrals) Walk

func (ct *Centrals) Walk(first bool) (node Node, c int64, ok bool)

type Comp

type Comp int8

type Net

type Net struct {
	Neter
	// contains filtered or unexported fields
}

func NewNet

func NewNet(n Neter) *Net

func (*Net) Centralities

func (net *Net) Centralities(maxStep int) *Centrals

func (Net) ExtremitiesNb

func (net Net) ExtremitiesNb() int

func (*Net) NbNodes

func (net *Net) NbNodes() int

func (*Net) Update

func (net *Net) Update()

type Neter

type Neter interface {
	Number() int
	Enumerate(first bool) (node Node, extremity, ok bool)
}

type Node

type Node interface {
	Compare(Node) Comp
	FromTo(first bool) (follow Node, ok bool)
}

Jump to

Keyboard shortcuts

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