MCPcopy Create free account
hub / github.com/BirolLab/abyss / pathExtensionResultStr

Function pathExtensionResultStr

Graph/ExtendPath.h:63–80  ·  view source on GitHub ↗

* Translate path extension result code to a string. */

Source from the content-addressed store, hash-verified

61 * Translate path extension result code to a string.
62 */
63static inline const char* pathExtensionResultStr(PathExtensionResultCode result)
64{
65 switch(result) {
66 case ER_AMBI_IN:
67 return "AMBI_IN";
68 case ER_AMBI_OUT:
69 return "AMBI_OUT";
70 case ER_DEAD_END:
71 return "DEAD_END";
72 case ER_CYCLE:
73 return "CYCLE";
74 case ER_LENGTH_LIMIT:
75 return "LENGTH_LIMIT";
76 default:
77 assert(false);
78 }
79 return "";
80}
81
82/** length of path extension (in vertices) and reason for stopping */
83typedef std::pair<unsigned, PathExtensionResultCode> PathExtensionResult;

Callers 1

ContigRecordClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected