Supporting adj. matrices

+ edges can have arbitrary weights
+ adpated parser accordingly
+ initing adj. matrix with 'almost inf'
+ adapted pretty printers