FrontISTR 5.2.0
Large-scale structural analysis program with finit element method
Loading...
Searching...
No Matches
hecmw_graph.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright (c) 2019 FrontISTR Commons
3 * This software is released under the MIT License, see LICENSE.txt
4 *****************************************************************************/
13#ifndef HECMW_GRAPH_INCLUDED
14#define HECMW_GRAPH_INCLUDED
15
16#include <stdio.h>
17
18struct hecmw_varray_int;
19
26 struct hecmw_varray_int
30 struct hecmw_varray_int
32 int is_ref;
33};
34
40extern int HECMW_graph_init(struct hecmw_graph *graph
41 );
42
49 struct hecmw_graph *graph,
50 int num_vertex,
51 int *edge_index,
52 int *edge_item
53 );
54
57extern void HECMW_graph_finalize(struct hecmw_graph *graph
58 );
59
62extern void HECMW_graph_setNumVertex(
63 struct hecmw_graph *graph,
64 int num_vertex
65 );
66
72extern int HECMW_graph_addEdge(
73 struct hecmw_graph *graph,
74 int vert1,
75 int vert2
76 );
77
80extern void HECMW_graph_print(
81 const struct hecmw_graph *graph,
82 FILE *fp
83 );
84
90 const struct hecmw_graph *graph
91 );
92
97extern int HECMW_graph_getNumEdge(
98 const struct hecmw_graph *graph
99 );
100
105extern const int *HECMW_graph_getEdgeIndex(
106 const struct hecmw_graph *graph
107 );
108
113extern const int *HECMW_graph_getEdgeItem(
114 const struct hecmw_graph *graph
115 );
116
122extern int HECMW_graph_degeneGraph(
123 struct hecmw_graph *graph,
124 const struct hecmw_graph
125 *refgraph,
126 int num_part,
127 const int *parttab
128 );
129
130#endif /* HECMW_GRAPH_INCLUDED */
int HECMW_graph_degeneGraph(struct hecmw_graph *graph, const struct hecmw_graph *refgraph, int num_part, const int *parttab)
Definition: hecmw_graph.c:160
const int * HECMW_graph_getEdgeIndex(const struct hecmw_graph *graph)
Definition: hecmw_graph.c:152
const int * HECMW_graph_getEdgeItem(const struct hecmw_graph *graph)
Definition: hecmw_graph.c:156
int HECMW_graph_getNumEdge(const struct hecmw_graph *graph)
Definition: hecmw_graph.c:148
int HECMW_graph_addEdge(struct hecmw_graph *graph, int vert1, int vert2)
Definition: hecmw_graph.c:114
int HECMW_graph_getNumVertex(const struct hecmw_graph *graph)
Definition: hecmw_graph.c:144
void HECMW_graph_print(const struct hecmw_graph *graph, FILE *fp)
Definition: hecmw_graph.c:123
void HECMW_graph_finalize(struct hecmw_graph *graph)
Definition: hecmw_graph.c:97
void HECMW_graph_setNumVertex(struct hecmw_graph *graph, int num_vertex)
Definition: hecmw_graph.c:106
int HECMW_graph_init_with_arrays(struct hecmw_graph *graph, int num_vertex, int *edge_index, int *edge_item)
Definition: hecmw_graph.c:73
int HECMW_graph_init(struct hecmw_graph *graph)
Definition: hecmw_graph.c:55
int m_num_vertex
Definition: hecmw_graph.h:24
int m_num_edge
Definition: hecmw_graph.h:25
struct hecmw_varray_int * m_edge_item
Definition: hecmw_graph.h:28
struct hecmw_varray_int * m_edge_index
Definition: hecmw_graph.h:26
struct hecmw_varray_int * m_vertex_weight
Definition: hecmw_graph.h:30