ListGraph constructors and their tests