24 #ifndef _OPENCOG_ATOM_UTILS_H
25 #define _OPENCOG_ATOM_UTILS_H
27 #include <opencog/atomspace/atom_types.h>
66 Type linkType=LINK,
bool subClasses=
true);
78 const std::vector<Type>& types =
132 Type predicateType=PREDICATE_NODE,
133 bool subClasses=
true);
188 #endif // _OPENCOG_ATOM_UTILS_H
std::vector< Handle > HandleSeq
a list of handles
HandleSeq get_neighbors(const Handle &h, bool fanin, bool fanout, Type desiredLinkType, bool subClasses)
UnorderedHandleSet get_distant_neighbors(const Handle &h, int dist)
HandleSeq get_predicates(const Handle &target, Type predicateType, bool subClasses)
HandleSeq get_all_atoms(Handle h)
HandleSeq get_all_nodes(Handle h)
HandleSeq get_predicates_for(const Handle &target, const Handle &predicate)
UnorderedHandleSet get_outgoing_nodes(const Handle &hinput, const std::vector< Type > &types)
UnorderedHandleSet get_all_unique_nodes(Handle h)
UnorderedHandleSet get_all_unique_atoms(Handle h)
unsigned short Type
type of Atoms, represented as short integer (16 bits)
std::unordered_set< Handle, handle_hash > UnorderedHandleSet
a hash that associates the handle to its unique identificator