11 namespace org.gnu.glpk {
13 public class glp_graph : global::System.IDisposable {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 protected bool swigCMemOwn;
17 internal glp_graph(global::System.IntPtr cPtr,
bool cMemoryOwn) {
18 swigCMemOwn = cMemoryOwn;
19 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
glp_graph obj) {
23 return (obj == null) ?
new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
30 public virtual void Dispose() {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 global::System.GC.SuppressFinalize(
this);
49 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_graph_pool_get(swigCPtr);
62 string ret =
GLPKPINVOKE.glp_graph_name_get(swigCPtr);
74 int ret =
GLPKPINVOKE.glp_graph_nv_max_get(swigCPtr);
110 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_graph_v_get(swigCPtr);
123 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_graph_index_get(swigCPtr);
136 int ret =
GLPKPINVOKE.glp_graph_v_size_get(swigCPtr);
148 int ret =
GLPKPINVOKE.glp_graph_a_size_get(swigCPtr);