#include <PGraph.h>
|
| PGraph () |
|
int | pgraphm_ (long int *weit, long int edges, long int nodes, long int *set, long int *nptr, long int nth) noexcept |
|
|
static void | trevni_ (long int *from, long int length, long int *to, long int maxv, long int *newlng, long int *work) noexcept |
|
Definition at line 8 of file PGraph.h.
◆ PGraph()
◆ pgraphm_()
int Trk::PGraph::pgraphm_ |
( |
long int * |
weit, |
|
|
long int |
edges, |
|
|
long int |
nodes, |
|
|
long int * |
set, |
|
|
long int * |
nptr, |
|
|
long int |
nth |
|
) |
| |
|
noexcept |
Case EDGES=0 or NODES=1 (graph is fully compatible) is handled correctly.
So we try to comment selection and use first available NODE. This lead s
Do not returt set complement; do not return solutions shorter than NTH.
Definition at line 9 of file PGraph.cxx.
17 long int node=0, maxl,i__1;
18 long int k1,k2,
ind,nlink[1000];
19 long int i__,
k,
l, ndmap[1000];
24 #define teit_ref(a_1,a_2) m_teit[(a_2)*2 + (a_1) - 3]
25 #define weit_ref(a_1,a_2) weit[(a_2)*2 + (a_1)]
78 if (nodes <= 0 || nodes > 1000) {
81 if (edges < 0 || edges > 499500) {
94 if (nodes == 1 || edges == 0) {
113 for (i__ = 1; i__ <= i__1; ++i__) {
118 for (i__ = 1; i__ <= i__1; ++i__) {
129 for (i__ = 1; i__ <= i__1; ++i__) {
130 if (maxl < nlink[i__ - 1]) {
131 maxl = nlink[i__ - 1];
155 for (i__ = 1; i__ <= i__1; ++i__) {
162 }
else if (
l ==
node) {
187 for (i__ = 1; i__ <= i__1; ++i__) {
227 for (i__ = 1; i__ <= i__1; ++i__) {
232 for (i__ =
m_lwset - k2 + 1; i__ <= i__1; ++i__) {
234 ndmap[
m_wset[i__ - 1] - 1] = 1;
241 if (ndmap[
k - 1] + ndmap[
l - 1] == 0) {
256 for (i__ = 1; i__ <= i__1; ++i__) {
301 for (i__ = 1; i__ <= i__1; ++i__) {
315 for (i__ = 1; i__ <= i__1; ++i__) {
326 for (i__ = 1; i__ <= i__1; ++i__) {
◆ trevni_()
void Trk::PGraph::trevni_ |
( |
long int * |
from, |
|
|
long int |
length, |
|
|
long int * |
to, |
|
|
long int |
maxv, |
|
|
long int * |
newlng, |
|
|
long int * |
work |
|
) |
| |
|
staticnoexcept |
Definition at line 343 of file PGraph.cxx.
346 long int i__1, i__,
k;
361 for (i__ = 1; i__ <= i__1; ++i__) {
366 for (i__ = 1; i__ <= i__1; ++i__) {
372 for (i__ = 1; i__ <= i__1; ++i__) {
373 if (work[i__] == 0) {
◆ m_choice
long int Trk::PGraph::m_choice |
|
private |
◆ m_lsett
long int Trk::PGraph::m_lsett[1000] |
|
private |
◆ m_lteit
long int Trk::PGraph::m_lteit[1000] |
|
private |
◆ m_lvset
long int Trk::PGraph::m_lvset |
|
private |
◆ m_lweit
long int Trk::PGraph::m_lweit |
|
private |
◆ m_lwset
long int Trk::PGraph::m_lwset |
|
private |
◆ m_sett
short int Trk::PGraph::m_sett[499500] |
|
private |
◆ m_tabnr
long int Trk::PGraph::m_tabnr |
|
private |
◆ m_teit
short int Trk::PGraph::m_teit[999000] |
|
private |
◆ m_vset
long int Trk::PGraph::m_vset[1000] |
|
private |
◆ m_wset
long int Trk::PGraph::m_wset[1000] |
|
private |
The documentation for this class was generated from the following files:
static void trevni_(long int *from, long int length, long int *to, long int maxv, long int *newlng, long int *work) noexcept
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.