Linear signal-flow graphs and applications