added getConnectedNodesBy and Node Functor implementation

added getConnectedNodesBy to extract node connectivity information from a Network. Also made GeneralNode an instance of Functor and renamed SparseNode to Node.