A shapely network

Your challenge is to find the longest way through the network following this rule. You can start and finish anywhere, and with any shape, as long as you follow the correct order.

Problem



Look at the network of shapes below:

Image
A Shapely Network


Your challenge is to find the longest way through the network following this rule:

Image
A Shapely Network


You can start and finish anywhere, and with any shape, as long as you follow the correct order. You may only visit each shape once but you do not have to visit them all.