NAME
Data::Hopen::G::Entity - The base class for all hopen nodes and edges
SYNOPSIS
hopen creates and manages a graph of entities: nodes and edges. This class holds common information.
MEMBERS
name
The name of this entity. The name is for human consumption and is not used by hopen to make any decisions. However, node names starting with an underscore are reserved for hopen's internal use.
The name '0'
(a single digit zero) is forbidden (since it's falsy).
FUNCTIONS
name
A custom accessor for name. If no name has been stored, return the stringifed version of the entity. That way every entity always has a name.
has_custom_name
Returns truthy if a name has been set using "name".
Stringification
Stringifies to the name plus, if the name is custom, the refaddr.