in cassovary-core/src/main/scala/com/twitter/cassovary/graph/DirectedGraph.scala [23:31]
def isOutDirStored(d: StoredGraphDir) = (d == BothInOut) || (d == OnlyOut) || (d == Mutual)
def isInDirStored(d: StoredGraphDir) = (d == BothInOut) || (d == OnlyIn) || (d == Mutual)
def isDirStored(dir: GraphDir, storedGraphDir: StoredGraphDir) = {
dir match {
case GraphDir.InDir => StoredGraphDir.isInDirStored(storedGraphDir)
case GraphDir.OutDir => StoredGraphDir.isOutDirStored(storedGraphDir)
}
}