Graphviz 13.0.0~dev.20241220.2304
|
#include "config.h"
#include <limits.h>
#include <ortho/sgraph.h>
#include <ortho/fPQ.h>
#include <util/alloc.h>
Go to the source code of this file.
Macros | |
#define | UNSEEN INT_MIN |
Functions | |
void | gsave (sgraph *G) |
void | reset (sgraph *G) |
void | initSEdges (sgraph *g, int maxdeg) |
sgraph * | createSGraph (int nnodes) |
snode * | createSNode (sgraph *g) |
static void | addEdgeToNode (snode *np, int idx) |
sedge * | createSEdge (sgraph *g, snode *v1, snode *v2, double wt) |
void | freeSGraph (sgraph *g) |
static snode * | adjacentNode (sgraph *g, sedge *e, snode *n) |
int | shortPath (sgraph *g, snode *from, snode *to) |
|
static |
Definition at line 77 of file sgraph.c.
References snode::adj_edge_list, and snode::n_adj.
Referenced by createSEdge().
Definition at line 134 of file sgraph.c.
References snode::index, sgraph::nodes, sedge::v1, and sedge::v2.
Referenced by shortPath().
Definition at line 84 of file sgraph.c.
References addEdgeToNode(), sedge::cnt, sgraph::edges, snode::index, sgraph::nedges, sedge::v1, sedge::v2, and sedge::weight.
Referenced by addLoop(), addNodeEdges(), and createSEdges().
sgraph * createSGraph | ( | int | nnodes | ) |
Definition at line 57 of file sgraph.c.
References gv_alloc(), gv_calloc(), sgraph::nnodes, and sgraph::nodes.
Referenced by mkMazeGraph().
Definition at line 68 of file sgraph.c.
References snode::index, sgraph::nnodes, and sgraph::nodes.
Referenced by findSVert().
void freeSGraph | ( | sgraph * | g | ) |
Definition at line 102 of file sgraph.c.
References snode::adj_edge_list, sgraph::edges, free(), and sgraph::nodes.
Referenced by freeMaze().
void gsave | ( | sgraph * | G | ) |
Definition at line 19 of file sgraph.c.
References G.
Referenced by mkMazeGraph().
void initSEdges | ( | sgraph * | g, |
int | maxdeg | ||
) |
Definition at line 41 of file sgraph.c.
References snode::adj_edge_list, sgraph::edges, gv_calloc(), sgraph::nnodes, and sgraph::nodes.
Referenced by mkMazeGraph().
void reset | ( | sgraph * | G | ) |
Definition at line 29 of file sgraph.c.
References G.
Referenced by fdp_tLayout(), flat_edges(), and orthoEdges().
Definition at line 143 of file sgraph.c.
References snode::adj_edge_list, adjacentNode(), E_WT, sgraph::edges, snode::index, snode::n_adj, N_DAD, N_EDGE, N_VAL, sgraph::nnodes, sgraph::nodes, NULL, PQ_insert(), PQinit(), PQremove(), PQupdate(), and UNSEEN.
Referenced by orthoEdges().