added Network.polarity per issue #158