Text this: On a mathematical theory of complex systems on networs with application to opinion formation