Пример #1
0
 @operator(
     value = {"neighbours_of"},
     type = IType.LIST,
     content_type = ITypeProvider.FIRST_KEY_TYPE,
     category = {IOperatorCategory.GRAPH})
 @doc(
     deprecated = "use neighbors_of instead",
     value =
         "returns the list of neighbours of the given vertex (right-hand operand) in the given graph (left-hand operand)",
     examples = {
       @example(
           value = "graphEpidemio neighbours_of (node(3))",
           equals = "[node0,node2]",
           isExecutable = false),
       @example(
           value = "graphFromMap neighbours_of node({12,45})",
           equals = "[{1.0,5.0},{34.0,56.0}]",
           isExecutable = false)
     },
     see = {"neighbors_of"})
 public static IList neighboursOf_deprecated(
     final IScope scope, final IGraph graph, final Object vertex) {
   return Graphs.neighboursOf(scope, graph, vertex);
 }