1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using System;
|
---|
23 | using System.Runtime.InteropServices;
|
---|
24 |
|
---|
25 | namespace HeuristicLab.igraph {
|
---|
26 | #region Structs
|
---|
27 | [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
---|
28 | internal class igraph_rng_type_t {
|
---|
29 | IntPtr name;
|
---|
30 | internal uint min;
|
---|
31 | internal uint max;
|
---|
32 | };
|
---|
33 |
|
---|
34 | [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
---|
35 | internal class igraph_rng_t {
|
---|
36 | IntPtr type;
|
---|
37 | IntPtr state;
|
---|
38 | internal int def;
|
---|
39 | };
|
---|
40 |
|
---|
41 |
|
---|
42 | [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
---|
43 | internal class igraph_vector_t {
|
---|
44 | IntPtr stor_begin;
|
---|
45 | IntPtr stor_end;
|
---|
46 | IntPtr end;
|
---|
47 | };
|
---|
48 |
|
---|
49 | [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
---|
50 | internal class igraph_matrix_t {
|
---|
51 | igraph_vector_t data = new igraph_vector_t();
|
---|
52 | internal int nrow;
|
---|
53 | internal int ncol;
|
---|
54 | };
|
---|
55 |
|
---|
56 | [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
---|
57 | internal class igraph_t {
|
---|
58 | internal int n;
|
---|
59 | internal bool directed;
|
---|
60 | igraph_vector_t from = new igraph_vector_t();
|
---|
61 | igraph_vector_t to = new igraph_vector_t();
|
---|
62 | igraph_vector_t oi = new igraph_vector_t();
|
---|
63 | igraph_vector_t ii = new igraph_vector_t();
|
---|
64 | igraph_vector_t os = new igraph_vector_t();
|
---|
65 | igraph_vector_t @is = new igraph_vector_t();
|
---|
66 | IntPtr attr;
|
---|
67 | };
|
---|
68 | #endregion
|
---|
69 |
|
---|
70 | #region Enums
|
---|
71 | internal enum igraph_layout_grid_t {
|
---|
72 | IGRAPH_LAYOUT_GRID,
|
---|
73 | IGRAPH_LAYOUT_NOGRID,
|
---|
74 | IGRAPH_LAYOUT_AUTOGRID
|
---|
75 | };
|
---|
76 | #endregion
|
---|
77 | }
|
---|