return ret_hu_conv;
}
+ /**
+ * Returns the list of channels in the graph
+ */
+ public long[] list_channels() {
+ long[] ret = bindings.ReadOnlyNetworkGraph_list_channels(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
/**
* Returns information on a node with the given id.
*
return ret_hu_conv;
}
+ /**
+ * Returns the list of nodes in the graph
+ */
+ public NodeId[] list_nodes() {
+ long[] ret = bindings.ReadOnlyNetworkGraph_list_nodes(this.ptr);
+ Reference.reachabilityFence(this);
+ int ret_conv_8_len = ret.length;
+ NodeId[] ret_conv_8_arr = new NodeId[ret_conv_8_len];
+ for (int i = 0; i < ret_conv_8_len; i++) {
+ long ret_conv_8 = ret[i];
+ org.ldk.structs.NodeId ret_conv_8_hu_conv = null; if (ret_conv_8 < 0 || ret_conv_8 > 4096) { ret_conv_8_hu_conv = new org.ldk.structs.NodeId(null, ret_conv_8); }
+ ret_conv_8_hu_conv.ptrs_to.add(this);
+ ret_conv_8_arr[i] = ret_conv_8_hu_conv;
+ }
+ return ret_conv_8_arr;
+ }
+
/**
* Get network addresses by node id.
* Returns None if the requested node is completely unknown,