fix #7, use empty network instead of breaking
on empty input file