- Documented helper methods
This commit is contained in:
Tristan B. Velloza Kildaire 2024-05-04 10:35:29 +02:00
parent c8eacc75a6
commit b83cadce82
1 changed files with 15 additions and 0 deletions

View File

@ -813,11 +813,26 @@ public class Graph(T)
return false;
}
/**
* Checks if the given type is
* that of a graph node
*
* Returns: `true` if so, `false`
* otherwise
*/
private static bool isGraphNodeType(E)()
{
return __traits(isSame, E, Graph!(T));
}
/**
* Checks if the given type is
* that of a graph node's value
* type
*
* Returns: `true` if so, `false`
* otherwise
*/
private static bool isGraphValueType(E)()
{
return __traits(isSame, E, T);