PGROUTING  3.1
pgrouting::contraction Namespace Reference

Classes

class  Pgr_contract
 
class  Pgr_deadend
 
class  Pgr_linear
 

Functions

bool is_valid_contraction (int number)
 

Function Documentation

◆ is_valid_contraction()

bool pgrouting::contraction::is_valid_contraction ( int  number)

Definition at line 35 of file pgr_contract.cpp.

Referenced by do_pgr_contractGraph().

35  {
36  switch (number) {
37  case 1:
38  case 2:
39  return true;
40  break;
41  default:
42  return false;
43  break;
44  }
45 }