Attribute functionality added

in random graph