igraph
IGraphMemoryBackend
Bases: PermissionGraphBackend
IGraph based PermissionGraphBackend implementation.
Source code in src/permission_graph/backends/igraph.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|
edge_exists(source, target)
Return True if there is an edge between source and target.
Source code in src/permission_graph/backends/igraph.py
79 80 81 82 83 84 85 |
|
get_edge_type(source, target)
Get the type of edge from source to target.
Source code in src/permission_graph/backends/igraph.py
107 108 109 110 111 112 |
|
remove_edge(source, target)
Remove an edge from the permission graph.
Source code in src/permission_graph/backends/igraph.py
87 88 89 90 91 |
|
shortest_paths(source, target)
Return all shortest paths from source to target.
Source code in src/permission_graph/backends/igraph.py
93 94 95 96 97 98 99 100 101 102 103 104 105 |
|
vertex_exists(vertex)
Return True if a vertex wit hthat id already exists.
Source code in src/permission_graph/backends/igraph.py
54 55 56 57 58 59 60 |
|
vertex_factory(vertex_id)
Return a vertex from a vertex id.
Source code in src/permission_graph/backends/igraph.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|