app / com.pzpg.ogr.graph / Algorithm
Algorithm
class Algorithm : Layout
*
Same algorithm that we can find here link below, with an added line in method Algorithm.randomize that helps to save the position of the node of the recognized graph GraphML.
https://github.com/Team-Blox/GraphView/blob/master/graphview/src/main/java/de/blox/graphview/energy/FruchtermanReingoldAlgorithm.kt
Constructors
Name | Summary |
---|---|
<init> | <ul><li></li></ul>Algorithm(iterations: Int = DEFAULT_ITERATIONS) |
Functions
Name | Summary |
---|---|
drawEdges | fun drawEdges(canvas: Canvas , graph: Graph, linePaint: Paint ): Unit |
run | fun run(graph: Graph, shiftX: Float , shiftY: Float ): Size |
setEdgeRenderer | fun setEdgeRenderer(renderer: EdgeRenderer): Unit |
Companion Object Properties
Name | Summary |
---|---|
CLUSTER_PADDING | const val CLUSTER_PADDING: Int |
DEFAULT_ITERATIONS | const val DEFAULT_ITERATIONS: Int |