Graphviz 13.0.0~dev.20241220.2304
|
make directed graph acyclic, implements graphviz_acyclic, used in cmd/tools/acyclic.c More...
Go to the source code of this file.
Data Structures | |
struct | Agnodeinfo_t |
Macros | |
#define | ND_mark(n) (((Agnodeinfo_t *)((n)->base.data))->mark) |
#define | ND_onstack(n) (((Agnodeinfo_t *)((n)->base.data))->onstack) |
#define | graphName(g) (agnameof(g)) |
Functions | |
static void | addRevEdge (Agraph_t *g, Agedge_t *e) |
static bool | dfs (Agraph_t *g, Agnode_t *t, bool hasCycle, size_t *num_rev) |
Return true if the graph has a cycle. | |
bool | graphviz_acyclic (Agraph_t *g, const graphviz_acyclic_options_t *opts, size_t *num_rev) |
Copyright (c) 2011 AT&T Intellectual Property All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v10.html
Authors: Stephen North, Emden Gansner Contributors: Details at https://graphviz.org
Definition in file acyclic.c.
#define ND_mark | ( | n | ) | (((Agnodeinfo_t *)((n)->base.data))->mark) |
#define ND_onstack | ( | n | ) | (((Agnodeinfo_t *)((n)->base.data))->onstack) |
Definition at line 37 of file acyclic.c.
References agattr(), agcopyattr(), AGEDGE, agedge(), aghead, agnameof(), agsafeset(), agtail, agxget(), HEADPORT_ID, and TAILPORT_ID.
Referenced by dfs().
Definition at line 52 of file acyclic.c.
References addRevEdge(), agdelete(), agedge(), agfstout(), aghead, agisstrict(), agnameof(), agnxtout(), agtail, dfs(), ND_mark, and ND_onstack.
Referenced by acyclic(), dfs(), dfs(), and graphviz_acyclic().