Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMatrixAymmetric = errors.New("matrix not symmetric") ErrMatrixEmpty = errors.New("matrix not symmetric") ErrNoEdges = errors.New("graph contains no edges") )
View Source
var (
ErrSimulationStopped = errors.New("layout simulation stopped")
)
Functions ¶
Types ¶
type FruchtermanReingoldConfig ¶
type FruchtermanReingoldConfig struct { // number of simulation iterations to run Niter int // maximum change in position for any iteration MaxDelta float64 // size of space to explore Area float64 // cooling exponent for annealing CoolExp float64 // radius at which vertex/vertex repulsion cancels out attraction // of adjacent vertices RepulseRad float64 // to speed calculations on large graphs, the plot region is divided at each // iteration into `ncell`x`ncell` "cells", which are used to define // neighborhoods and force calculation. moderate numbers of cells result in // fastest calculations. too few can look odd, and too many can take too long Ncells float64 // cell jitter: factor (in units of cell width) used in assigning vertices // to cells. small values may generate "grid-like" anomalies for graphs // with many isolates CellJitter float64 // cell pointpointrad: square "radius" (in units of cells) such that exact // point interaction calculations are used for all vertices belonging to any // two cells less than or equal to this distance apart. higher values // approximate the true F/R solution, but increases computational cost. CPPR float64 // cell pointcellrad: squared "radius" (in units of cells) such that approximate // point/cell interaction calculations are used for all vertices belonging to // two cells less than or equal to this distance apart (and not within the // point/point radius). higher values provide somewhat better approximations // to the true F/R solution at slightly increased computational cost. CPCR float64 // cell cellcellrad: squared "radius" (in units of cells) such that the approximate // cell/cell interactino calculations are used for all vertices belonging to // any two cells less than or equal to this distance apart (and not within the // point/point or point/cell radii). higher values provide somewhat better // approximations to the true F/R solution at slightly increased computational // cost. note that cells beyond this radius (if any) do not interact, save // through edge attraction. CCCR float64 }
Click to show internal directories.
Click to hide internal directories.