Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
edgelist.c File Reference
#include <circogen/edgelist.h>
#include <assert.h>
#include <util/alloc.h>
Include dependency graph for edgelist.c:

Go to the source code of this file.

Functions

static void * mkItem (void *p, Dtdisc_t *disc)
 
static int cmpItem (void *k1, void *k2)
 
edgelistinit_edgelist (void)
 
void free_edgelist (edgelist *list)
 
void add_edge (edgelist *list, Agedge_t *e)
 
void remove_edge (edgelist *list, Agedge_t *e)
 

Variables

static Dtdisc_t ELDisc
 

Function Documentation

◆ add_edge()

void add_edge ( edgelist list,
Agedge_t e 
)

Definition at line 57 of file edgelist.c.

References dtinsert, and edgelistitem::edge.

Referenced by count_all_crossings().

Here is the caller graph for this function:

◆ cmpItem()

static int cmpItem ( void *  k1,
void *  k2 
)
static

Definition at line 25 of file edgelist.c.

◆ free_edgelist()

void free_edgelist ( edgelist list)

Definition at line 52 of file edgelist.c.

References dtclose().

Referenced by count_all_crossings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_edgelist()

edgelist * init_edgelist ( void  )

Definition at line 46 of file edgelist.c.

References dtopen(), Dtoset, and ELDisc.

Referenced by count_all_crossings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mkItem()

static void * mkItem ( void *  p,
Dtdisc_t disc 
)
static

Definition at line 15 of file edgelist.c.

References disc, edgelistitem::edge, and gv_alloc().

Here is the call graph for this function:

◆ remove_edge()

void remove_edge ( edgelist list,
Agedge_t e 
)

Definition at line 65 of file edgelist.c.

References dtdelete, and edgelistitem::edge.

Referenced by count_all_crossings().

Here is the caller graph for this function:

Variable Documentation

◆ ELDisc

Dtdisc_t ELDisc
static
Initial value:
= {
offsetof(edgelistitem, edge),
sizeof(Agedge_t *),
offsetof(edgelistitem, link),
}
static void * mkItem(void *p, Dtdisc_t *disc)
Definition edgelist.c:15
static int cmpItem(void *k1, void *k2)
Definition edgelist.c:25
void free(void *)
edge
Definition gmlparse.y:240

Definition at line 37 of file edgelist.c.

Referenced by init_edgelist().