first draft on algo section on trivalent graphs