creates network nodes list from edges list if it has not been passed by the user